From 91fadd5430e4ae189573f3eded0187d764614422 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 25 May 2023 02:42:58 +0300 Subject: [PATCH] Fixed Postgres Timezone Issues (part 2) --- ...te_timestamp_columns_to_with_timezone_part2.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/NzbDrone.Core/Datastore/Migration/032_postgres_update_timestamp_columns_to_with_timezone_part2.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/032_postgres_update_timestamp_columns_to_with_timezone_part2.cs b/src/NzbDrone.Core/Datastore/Migration/032_postgres_update_timestamp_columns_to_with_timezone_part2.cs new file mode 100644 index 000000000..72e16082e --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/032_postgres_update_timestamp_columns_to_with_timezone_part2.cs @@ -0,0 +1,15 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(032)] + public class postgres_update_timestamp_columns_to_with_timezone_part2 : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Alter.Table("DownloadHistory").AlterColumn("Date").AsDateTimeOffset().Nullable(); + Alter.Table("ImportListStatus").AlterColumn("LastInfoSync").AsDateTimeOffset().Nullable(); + } + } +}