Skip to content

Commit

Permalink
New: Drop commands table content before postgres migration
Browse files Browse the repository at this point in the history
Signed-off-by: Stevie Robinson <stevie.robinson@gmail.com>
(cherry picked from commit 8dd3b45c90209136c0bd0a861061c6d20837d62f)

Closes #4475
  • Loading branch information
stevietv authored and mynameisbogdan committed Jan 19, 2024
1 parent 82d9228 commit 3e16eb7
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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();
Expand Down

0 comments on commit 3e16eb7

Please sign in to comment.