Add RetroApplyTags column to multiple tables

Changed the RetroApplyTags column type in ImportLists to Boolean. Added RetroApplyTags column to Notifications, Indexers, and DownloadClients with a default value of false. This ensures consistent behavior across these tables.
This commit is contained in:
Steel City Phantom 2024-10-08 16:43:17 -04:00 committed by GitHub
parent fb297adcf0
commit dae2c030aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,8 +8,9 @@ public class add_retroapply_to_importlists : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Alter.Table("ImportLists").AddColumn("RetroApplyTags").AsInt32().WithDefaultValue(0);
Alter.Table("Notifications").AddColumn("RetroApplyTags").AsInt32().WithDefaultValue(0);
Alter.Table("Indexers").AddColumn("RetroApplyTags").AsInt32().WithDefaultValue(0);
Alter.Table("ImportLists").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
Alter.Table("Notifications").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
Alter.Table("Indexers").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
Alter.Table("DownloadClients").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
}
}