Fix migration running in PostgreSQL

This commit is contained in:
Bogdan 2023-05-08 23:58:31 +03:00
parent 4990e537eb
commit 20c085a979

View file

@ -8,7 +8,7 @@ public class health_restored_notification : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Alter.Table("Notifications").AddColumn("OnHealthRestored").AsBoolean().WithDefaultValue(0);
Alter.Table("Notifications").AddColumn("OnHealthRestored").AsBoolean().NotNullable().WithDefaultValue(false);
}
}
}