From b36085a3cc3c25cd0c2431b6f253b37ddc5efa6e Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Fri, 19 Jan 2024 06:42:31 +0100 Subject: [PATCH] New: Drop commands table content before postgres migration Signed-off-by: Stevie Robinson (cherry picked from commit 8dd3b45c90209136c0bd0a861061c6d20837d62f) Closes #3225 --- .../023_postgres_update_timestamp_columns_to_with_timezone.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/Datastore/Migration/023_postgres_update_timestamp_columns_to_with_timezone.cs b/src/NzbDrone.Core/Datastore/Migration/023_postgres_update_timestamp_columns_to_with_timezone.cs index f53bbc379..6aab8af59 100644 --- a/src/NzbDrone.Core/Datastore/Migration/023_postgres_update_timestamp_columns_to_with_timezone.cs +++ b/src/NzbDrone.Core/Datastore/Migration/023_postgres_update_timestamp_columns_to_with_timezone.cs @@ -8,6 +8,8 @@ namespace NzbDrone.Core.Datastore.Migration { protected override void MainDbUpgrade() { + Delete.FromTable("Commands").AllRows(); + Alter.Table("Authors").AlterColumn("LastInfoSync").AsDateTimeOffset().Nullable(); Alter.Table("Authors").AlterColumn("Added").AsDateTimeOffset().Nullable(); Alter.Table("AuthorMetadata").AlterColumn("Born").AsDateTimeOffset().Nullable();