It seems like mysql doesn't like unbounded character text types as a primary key. For mysql/maria table creation fails with the following:
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1170, "BLOB/TEXT column 'version' used in key specification without a key length")
[SQL:
CREATE TABLE astro_available_version (
version TEXT NOT NULL,
level TEXT NOT NULL,
date_released DATETIME NOT NULL,
description TEXT,
url TEXT,
hidden_from_ui BOOL NOT NULL,
PRIMARY KEY (version),
CHECK (hidden_from_ui IN (0, 1))
)
It seems like mysql doesn't like unbounded character text types as a primary key. For mysql/maria table creation fails with the following:
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1170, "BLOB/TEXT column 'version' used in key specification without a key length") [SQL: CREATE TABLE astro_available_version ( version TEXT NOT NULL, level TEXT NOT NULL, date_released DATETIME NOT NULL, description TEXT, url TEXT, hidden_from_ui BOOL NOT NULL, PRIMARY KEY (version), CHECK (hidden_from_ui IN (0, 1)) )
Per this post: https://stackoverflow.com/questions/1827063/mysql-error-key-specification-without-a-key-length I updated the primary key type from an unbounded text type to String(255) which fixes the issue.