diff --git a/db_creation/update_db.py b/db_creation/update_db.py index 782bafe..50dc0e1 100644 --- a/db_creation/update_db.py +++ b/db_creation/update_db.py @@ -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'