add InsertData(), UpdateData(), DeleteData() migration methods and improve RewriteValue() abstraction
This commit is contained in:
@ -23,7 +23,7 @@ namespace Oqtane.Migrations.Master
|
||||
//Update new column if SqlServer (Other Databases will not have any records yet)
|
||||
if (ActiveDatabase.Name == "SqlServer")
|
||||
{
|
||||
tenantEntityBuilder.UpdateColumn("DBType", $"'{ActiveDatabase.TypeName}'");
|
||||
tenantEntityBuilder.UpdateData("DBType", $"'{ActiveDatabase.TypeName}'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ namespace Oqtane.Migrations.Master
|
||||
//Add Column to Alias table
|
||||
var aliasEntityBuilder = new AliasEntityBuilder(migrationBuilder, ActiveDatabase);
|
||||
aliasEntityBuilder.AddBooleanColumn("IsDefault", true);
|
||||
aliasEntityBuilder.UpdateColumn("IsDefault", "1", "bool", "");
|
||||
aliasEntityBuilder.UpdateData("IsDefault", true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
|
Reference in New Issue
Block a user