Fix column type on dbs.encrypted_extra, add instructions for testing migration downgrades#8493
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8493 +/- ##
=======================================
Coverage 66.61% 66.61%
=======================================
Files 449 449
Lines 22610 22610
Branches 2367 2367
=======================================
Hits 15061 15061
Misses 7411 7411
Partials 138 138Continue to review full report at Codecov.
|
…migration downgrades (#8493) * Fix column type on dbs.encrypted_extra * Add instructions for testing migration downgrades * Account for non-Postgres DBs in migration * Use batch_alter_table to make SQLite happy * Another CI-appeasing tweak
|
Hi everybody, for some the first time that I migrated from 0.35.2 I didn't see any bug, but then I had to re-do it and I noticed the following when running I found something similar in #9878 but not really sure where this comes from. I am running Mariadb 10.3.22, is it something db-specific? Has anybody else already encountered this problem? If I check the specific line in EncryptedType doesn't seem to have a length afaics, maybe there is a quick fix to support Mariadb/Mysql as well? |
|
This is what broke it: kvesteri/sqlalchemy-utils#426 The pinned version on master branch works. I suggest downgrading to that until this issue is resolved in |
|
@villebro I confirm that pinning |
|
I'll start working on |
CATEGORY
Choose one
SUMMARY
The new
encrypted_extrafield on thedbstable was causing the databases list to become inaccessible when used with Postgres. This was caused by a type misalignment between the database and the model definition. Also add instructions in CONTRIBUTING.md around testing down migrations.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION
REVIEWERS
@dpgaspar @mistercrunch