[Bug] | Migration uses ALTER COLUMN
which is not supported in SQLite
#493
Labels
bug
Something isn't working
ALTER COLUMN
which is not supported in SQLite
#493
Are you using the latest release?
Have you checked a bug report doesn't already exist?
What happened?
When Wizarr is launched with a fresh database, the
2024-04-30_16-44-17.py
migration fails because it tries to executeALTER TABLE invitations ALTER COLUMN live_tv SET DATA TYPE BOOLEAN;
, which is not supported on SQLite (SQLite only implementsRENAME COLUMN
,ADD COLUMN
, andDROP COLUMN
).I believe that the correct way to implement it would be to transfer the data to a temporary table of some kind, (see https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3)
(Also, I thought the point of using an ORM like peewee was that you don't have to write raw SQL queries? That could've caught the bug much earlier)
Virtualisation
Other
What operating system are you seeing the problem on?
Linux
What browsers are you seeing the problem on?
Firefox
Project Location
Local
Relevant Log Output
The text was updated successfully, but these errors were encountered: