diff --git a/src/NzbDrone.Core/Datastore/Migration/212_postgres_update_timestamp_columns_to_with_timezone.cs b/src/NzbDrone.Core/Datastore/Migration/212_postgres_update_timestamp_columns_to_with_timezone.cs index 3d0e4bd8c..c073963b8 100644 --- a/src/NzbDrone.Core/Datastore/Migration/212_postgres_update_timestamp_columns_to_with_timezone.cs +++ b/src/NzbDrone.Core/Datastore/Migration/212_postgres_update_timestamp_columns_to_with_timezone.cs @@ -8,6 +8,8 @@ public class postgres_update_timestamp_columns_to_with_timezone : NzbDroneMigrat { protected override void MainDbUpgrade() { + Delete.FromTable("Commands").AllRows(); + Alter.Table("Blocklist").AlterColumn("Date").AsDateTimeOffset().NotNullable(); Alter.Table("Blocklist").AlterColumn("PublishedDate").AsDateTimeOffset().Nullable(); Alter.Table("Collections").AlterColumn("Added").AsDateTimeOffset().Nullable();