You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async def upgrade(db: BaseDBAsyncClient) -> str:
return """
CREATE TABLE IF NOT EXISTS `languages` (
`id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
`code` VARCHAR(2) NOT NULL
) CHARACTER SET utf8mb4;;
CREATE TABLE IF NOT EXISTS `timezones` (
`id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
`country_code` VARCHAR(2) NOT NULL,
`country_name` VARCHAR(255) NOT NULL,
`timezone` VARCHAR(255) NOT NULL,
`gmt_offset` VARCHAR(255) NOT NULL
) CHARACTER SET utf8mb4;;"""
tortoise.exceptions.OperationalError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';\n CREATE TABLE IF NOT EXISTS timezones (\n id INT NOT NULL PRIMARY' at line 1")
The text was updated successfully, but these errors were encountered:
tortoise.exceptions.OperationalError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';\n CREATE TABLE IF NOT EXISTS
timezones
(\nid
INT NOT NULL PRIMARY' at line 1")The text was updated successfully, but these errors were encountered: