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
In the last migration, we do some cleanup of an old left over column that have been recreated under a new name since then (alternativeTitle from table_shows) and that is causing issue while migrating to postgresql. This removal of column requires, under sqlite, to recreate the table under a temporary name, delete the old table and rename the new to the old name.
Unfortunately, the side effect of the old table deletion is that there's a ForeignKey constraint that cascade this deletion in table_episodes and, consequently, in table_history and table_blacklist.
I'll try to see if I can make alembic disable ForeignKey constraints before trying to migrate schema.
Should be fixed in upcoming beta. Can you test and confirm please. I haven't been able to reproduce on my side with this fix. Thanks for reporting BTW!
Describe the bug
This database migration is bad. It removes the entire episode table, causing Bazarr to have to reindex the full list.
To Reproduce
30f37e2e15e1
and episode histories452dd0f0b578
and check the episode table, verify it is all emptyExpected behavior
Database migrations should not nuke the episode table
Software (please complete the following information):
The text was updated successfully, but these errors were encountered: