refactor(migrations): extract schema constant for clarity
Build and Push Docker Images Staging / build (push) Successful in 8m22s
Build and Push Docker Images Staging / build (push) Successful in 8m22s
This commit is contained in:
@@ -27,12 +27,13 @@ namespace Email.Data.Migrations
|
|||||||
private static void Seed(MigrationBuilder m)
|
private static void Seed(MigrationBuilder m)
|
||||||
{
|
{
|
||||||
const string op = "contact@myai.ro";
|
const string op = "contact@myai.ro";
|
||||||
|
const string schema = MigrationConstants.SchemaName;
|
||||||
|
|
||||||
void Row(string key, string lang, string value, string description = "", string operatorCopy = "")
|
void Row(string key, string lang, string value, string description = "", string operatorCopy = "")
|
||||||
=> m.InsertData("EmailTemplates",
|
=> m.InsertData("EmailTemplates",
|
||||||
["Key", "Language", "Value", "Description", "OperatorCopy"],
|
["Key", "Language", "Value", "Description", "OperatorCopy"],
|
||||||
[key, lang, value, description, operatorCopy],
|
[key, lang, value, description, operatorCopy],
|
||||||
MigrationConstants.SchemaName);
|
schema);
|
||||||
|
|
||||||
// ── HTML shell (no operator copy — these are layout fragments, not addressable emails) ──
|
// ── HTML shell (no operator copy — these are layout fragments, not addressable emails) ──
|
||||||
Row("email.html-shell.start", "*",
|
Row("email.html-shell.start", "*",
|
||||||
|
|||||||
Reference in New Issue
Block a user