Merge pull request #2990 from sbwalker/dev
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:
		| @ -19,7 +19,7 @@ namespace Oqtane.Migrations.Tenant | ||||
|         protected override void Up(MigrationBuilder migrationBuilder) | ||||
|         { | ||||
|             var notificationEntityBuilder = new NotificationEntityBuilder(migrationBuilder, ActiveDatabase); | ||||
|             notificationEntityBuilder.AddBooleanColumn("IsRead", false); | ||||
|             notificationEntityBuilder.AddBooleanColumn("IsRead", true); | ||||
|             notificationEntityBuilder.UpdateColumn("IsRead", "1", "bool", ""); | ||||
|         } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker