New: Drop commands table content before postgres migration

Signed-off-by: Stevie Robinson <stevie.robinson@gmail.com>
pull/6381/head
Stevie Robinson 4 months ago committed by GitHub
parent 0b0f21d0ac
commit 8dd3b45c90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -8,6 +8,8 @@ namespace NzbDrone.Core.Datastore.Migration
{
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();

Loading…
Cancel
Save