| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The database connection was being set in a alembic.ini config file, if the user
had specified postgres the "sqlite" connection URL in alembic.ini would override
that. We probably should look into this more so i've opened #5395.
|
|
|
|
|
|
| |
Enable alembic for all migrations and limit the max number of
sqlalchemy-migration migration. All new migrations must now be in
Alembic!
|
|
|
|
|
|
|
| |
Some sqlite migrations were failing due to some problems with sqlite. A
work around has been created for these however it does involve loading lots
of data into memory. If you have a large database you should consider trying
to move to postgres.
|
|
|
|
| |
sqlalchemy-migrate will do this for us.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
We'd still prefer people use other solutions when possible!
This commit sponsored by Michał Masłowski. Thank you!
|
| |
|
|
|
|
|
|
| |
around the SQLite problems with Alter table. I added a new function to
migration_tools (replace_table) which does all the work I did in my migration of
core__users, but is now usable for other migrations.
|
| |
|
|
|
|
|
|
| |
for plugins. In this commit I changed the MigrationManager and DatabaseData ob-
jects to account for FOUNDATIONS in any plugin's (or main program's) models.py
file.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mediagoblin/db/models.py. This list holds all of the information about rows that
should be created at database initialization. Read the documentation near the
FOUNDATIONS list to understand the proper format for this list.
All of the work is done through a new method on MigrationManager in
mediagoblin/db/migrations_tools.py. This method, `populate_table_foundations`
parses the FOUNDATIONS list and creates the foundations based on the data incl-
uded. This only ever happens when the database is initialized. Migrations to
releases with new Foundations should be very easy just using the basic
database functionality.
|
|
|
|
|
|
| |
Previously it called even plugins media types. Ha!
This commit sponsored by Jon Merkley. Thank you!
|
|
|
|
|
|
| |
during migrations
This commit sponsored by Andrzej Prochyra. Thanks!
|
|
Follow the new trend.
|