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>
  • Loading branch information
stevietv committed Jan 19, 2024
1 parent 0b0f21d commit 8dd3b45
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
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("Blocklist").AlterColumn("Date").AsDateTimeOffset().NotNullable();
Alter.Table("Blocklist").AlterColumn("PublishedDate").AsDateTimeOffset().Nullable();
Alter.Table("Commands").AlterColumn("QueuedAt").AsDateTimeOffset().NotNullable();
Expand Down

0 comments on commit 8dd3b45

Please sign in to comment.