Added support for MySQL and ProgreSQL and AddSite/Tenant

This commit is contained in:
Charles Nurse
2021-04-02 10:55:00 -07:00
parent 2fb63e8117
commit e6530ee127
57 changed files with 708 additions and 581 deletions

View File

@ -22,19 +22,12 @@ namespace Oqtane.Migrations
siteEntityBuilder.AddStringColumn("AdminContainerType", 200, true);
//Update new column
migrationBuilder.Sql(
@"
UPDATE Site
SET AdminContainerType = ''
");
siteEntityBuilder.UpdateColumn("AdminContainerType", "''");
//Delete records from Page
migrationBuilder.Sql(
@"
DELETE FROM Page
WHERE Path = 'admin/tenants'
");
var pageEntityBuilder = new PageEntityBuilder(migrationBuilder, ActiveDatabase);
pageEntityBuilder.DeleteFromTable($"{ActiveDatabase.RewriteName("Path")} = 'admin/tenants'");
}
protected override void Down(MigrationBuilder migrationBuilder)