v2.2.0 RELEASE!

Small bugfix 2.1
This commit is contained in:
GaMeNu 2023-10-20 17:19:59 +03:00
parent aac470e1f6
commit f6c54ec9c2

View File

@ -14,7 +14,7 @@ DB_PASSWORD = os.getenv('DB_PASSWORD')
def updater_1_0_0(connection: mysql.connection.MySQLConnection) -> str:
crsr = connection.cursor()
crsr.execute("ALTER TABLE `hfc_db`.`channels` DROP COLUMN IF EXISTS `locations`")
crsr.execute("ALTER TABLE `hfc_db`.`channels` DROP COLUMN IF EXISTS locations")
crsr.execute("ALTER TABLE `hfc_db`.`channels` ADD COLUMN `locations` JSON NOT NULL DEFAULT ('[]');")
crsr.close()
return '1.0.1'