mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 15:47:20 +02:00
New: Drop commands table content before postgres migration
Signed-off-by: Stevie Robinson <stevie.robinson@gmail.com> (cherry picked from commit 8dd3b45c90209136c0bd0a861061c6d20837d62f)
This commit is contained in:
parent
18dc6f60b0
commit
77863dc2cf
@ -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("Collections").AlterColumn("Added").AsDateTimeOffset().Nullable();
|
||||
|
Loading…
Reference in New Issue
Block a user