1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/data/migrations
OpenShift Cherrypick Robot 7d94ff015e [redhat-3.11] chore: Update alembic migration script to support sqlite db (PROJQUAY-7314) (#2947)
* Add sqlite db support on quay start up

Signed-off-by: harishsurf <hgovinda@redhat.com>

* Add batchmode to migration scripts to support sqlite db

* Add sqlite db to config-tool validator + alembic migration

* Fix migration script to prevent db row locking

Added commit statement to ensure previous transaction is
completed before the next one within the same table

* Clean up unused sqlite volume

* Apply black formatting to migration scripts

* Address review comments

* Ensure py39-unit test runs the alembic migration on Sqlite

* Add static type checking for alembic config file name

* alembic remove commit and invalidate during migration

When disconnecting from db, alembic tries to rollback
causing PendingRollbackError

* Bump go version in config-tool Dockerfile

* Explicitly commit transaction to prevent db table locking

* Clean up + remove debug statements

* Undo database secret key change

* Add TEST_DATABASE_URI to py39-unit to run unit test with sqlite db

* Drop index before dropping column to prevent sqlite error

* Add test coverage + address last set of reviews

---------

Signed-off-by: harishsurf <hgovinda@redhat.com>
Co-authored-by: harishsurf <hgovinda@redhat.com>
2024-06-13 10:49:41 -04:00
..
2019-11-12 11:09:47 -05:00
2020-03-11 13:54:08 -04:00
2020-03-11 13:54:08 -04:00