fix migration error caused by new IsRead field in Notifications. Microsoft.Data.SqlClient.SqlException: 'ALTER TABLE only allows columns to be added that can contain nulls, or have a DEFAULT definition specified.'
This commit is contained in:
parent
92fc56e70d
commit
b87eddeeda
@ -19,7 +19,7 @@ namespace Oqtane.Migrations.Tenant
|
|||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
var notificationEntityBuilder = new NotificationEntityBuilder(migrationBuilder, ActiveDatabase);
|
var notificationEntityBuilder = new NotificationEntityBuilder(migrationBuilder, ActiveDatabase);
|
||||||
notificationEntityBuilder.AddBooleanColumn("IsRead", false);
|
notificationEntityBuilder.AddBooleanColumn("IsRead", true);
|
||||||
notificationEntityBuilder.UpdateColumn("IsRead", "1", "bool", "");
|
notificationEntityBuilder.UpdateColumn("IsRead", "1", "bool", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user