1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-24 15:00:54 +00:00

New: Drop commands table content before postgres migration

Signed-off-by: Stevie Robinson <stevie.robinson@gmail.com>
(cherry picked from commit 8dd3b45c90209136c0bd0a861061c6d20837d62f)

Closes #4475
This commit is contained in:
Stevie Robinson 2024-01-19 06:42:31 +01:00 committed by Bogdan
parent 82d9228ee9
commit 3e16eb736b

View file

@ -8,6 +8,8 @@ public class postgres_update_timestamp_columns_to_with_timezone : NzbDroneMigrat
{
protected override void MainDbUpgrade()
{
Delete.FromTable("Commands").AllRows();
Alter.Table("AlbumReleases").AlterColumn("ReleaseDate").AsDateTimeOffset().Nullable();
Alter.Table("Albums").AlterColumn("LastInfoSync").AsDateTimeOffset().Nullable();
Alter.Table("Albums").AlterColumn("ReleaseDate").AsDateTimeOffset().Nullable();