| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| | | | |
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Require an active login when accessing the form to change an email
address associated with an account. This prevents a server crash when
a user is assumed to be part of the request.
|
| | | |
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| | |
Reformat add_message function calls for consistency and PEP8 line
continuations.
|
| |
| |
| |
| | |
Fixes #5441
|
| |
| |
| |
| | |
* mediagoblin/media_types/blog/views.py: Import WARNING from mediagoblin.messages.
|
| |
| |
| |
| |
| |
| |
| | |
* mediagoblin/tests/test_sql_migrations.py: Import migration.changeset
even in python 3.
(FOUNDATIONS): Removed.
(test_set1_to_set3): Removed foundations checks.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously we assumed we wouldn't run migration tests if we're on
Python 3, but now that we support sqlalchemy-migrate with Python 3,
switch to checking based on "migrate" importability.
* mediagoblin/tests/test_sql_migrations.py: Update test skipping to
rely on "migrate" module presence rather than Python 3 check.
|
| |
| |
| |
| |
| | |
* configure.ac (AC_INIT):
* mediagoblin/_version.py (__version__): Update version to 1.0.dev.
|
| | |
|
| |
| |
| |
| |
| | |
* configure.ac (AC_INIT):
* mediagoblin/_version.py (__version__): Update to 0.9.0.
|
| |
| |
| |
| |
| | |
* mediagoblin/db/migrations.py: Import migrate if available; if not
print a warning.
|
| |
| |
| |
| |
| |
| |
| | |
* mediagoblin/gmg_commands/dbupdate.py (run_foundations):
When adding a plugin's foundations, correctly append both
the name and the foundations in a tuple to the list.
This prevents errors.
|
| |
| |
| |
| | |
* mediagoblin/tests/tools.py (get_app): Add comment
|
| |
| |
| |
| |
| | |
* mediagoblin/init/__init__.py (setup_database): Update to run alembic
migrations, skip the old legacy migrations.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Standard for anything existing before the Alembic move-over, but I
forgot this one.
* mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py
(upgrade): Add has_table check, skip if such a table already exists.
|
| |
| |
| |
| |
| | |
* mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/plugins/openid/migrations/071abb33d1da_openid_plugin_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/plugins/persona/migrations/c7d4840a5592_persona_plugin_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/blog/migrations/562bc42a8fff_blog_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/pdf/migrations/faa209f143b5_pdf_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/stl/migrations/16134ed134ad_stl_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/db/migrations/versions/72bd70f7eefd_ascii_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/video/migrations/38feb829c545_video_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/audio/migrations/e9212d3a12d3_adding_audio_media_type_initial_.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/image/migrations/a98c1a320e88_image_media_type_initial.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/gmg_commands/alembic_commands.py (FudgedCommandLine.main):
Removed call to print.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This allows plugin writers to easily take advantage off alembic's migration
autogeneration support.
* mediagoblin/gmg_commands/alembic_commands.py: Adjusted imports.
(FudgedCommandLine.main, parser_setup): Add support for importing
plugins when --with-plugins is passed in.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The goal is to get things to the point where Alembic can run on its own
for new databases and initialize the whole database on its own. There
are risks to not doing so, see #5413 for details.
There's a lot more here that could removed or cleaned up once
sqlalchemy-migrate is *completely* removed in the future.
* mediagoblin/db/migration_tools.py (MigrationManager.foundations):
Removed attribute.
(MigrationManager.populate_table_foundations): Removed method.
(MigrationManager.init_or_migrate): Removed call to deprecated method.
(populate_table_foundations): New function, refactored from former
MigrationManager method of same name.
* mediagoblin/gmg_commands/dbupdate.py: Import populate_table_foundations.
(DatabaseData.foundations): Remove attribute.
(DatabaseData.make_migration_manager): Adjust instantiation of
MigrationManager.
(gather_database_data): Move out the work of building up foundations data.
(run_foundations): New method, incorporating logic for gathering and
running foundations which was previously spread across other
functions and methods.
(run_alembic_migrations): Remove deprecated comment.
(run_dbupdate): Only run sqlalchemy migrations if we have to.
Also run run_foundations if we are setting up this database for the
first time.
(sqam_migrations_to_run): New method.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is a necessary step towards deprecating sqlalchemy-migrate.
* mediagoblin/db/migrations/versions/52bf0ccbedc1_initial_revision.py
(upgrade): Update for adding tables. Mostly generated via Alembic's
autogenerate tools.
(downgrade): Added a comment.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This allows us to make use of automatically generated migrations, at
least for core.
* mediagoblin/db/migrations/env.py (target_metadata): Switch to gmg's
Base.metadata.
|
| |
| |
| |
| |
| |
| |
| | |
This is important (probably) for long-running plugin branches.
* mediagoblin/db/migrations/script.py.mako: Updated to upstream
Alembic version of this file.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This makes use of the recently added "build_alembic_config" tool and
removes AlembicMigrationManager.
* mediagoblin/db/migration_tools.py (AlembicMigrationManager): Removed.
* mediagoblin/gmg_commands/dbupdate.py (run_alembic_migrations):
Adjusted to use recently added build_alembic_config tool.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Some tests were added for running audio and video submission tests in
test_submission.py. Unfortunately these were not skipped if these
dependencies were not installed. This patch attempts to fix that while
leaving the tests intact.
|
| |
| |
| |
| | |
Fix bug 5401
|
| |
| |
| |
| |
| |
| |
| |
| | |
gmg_commands.alembic attempted to import from `alembic`. On python2.7
it resulted in import from itself.
Rename alembic.py to alembic_commands.py and fix references to
gmg_commands.alembic.
|
| |
| |
| |
| | |
Closes bug 5401
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Change the comment ID behaviour and source of
user_pages/blog_media.html to match user_pages/media.html as of #5376.
|
| |
| |
| |
| |
| | |
Change the comment ID behaviour and source of user_pages/report.html
to match user_pages/media.html as of #5376.
|
| |
| |
| |
| |
| | |
This allows you to dispatch to the "alembic" command line tool properly,
but properly respecting MediaGoblin's own configuration.
|
| | |
|
| |
| |
| |
| |
| | |
Thanks to Jessica Tallon for pointing out this TODO and its associated
hack could be removed.
|