- Refactor the way databases are schema-migrated so that load_migrations()
commit2410fe8c2578fbd11275cfc7fc1897173eecd41a
authorBarry Warsaw <barry@list.org>
Sun, 8 Apr 2012 16:15:29 +0000 (8 10:15 -0600)
committerBarry Warsaw <barry@list.org>
Sun, 8 Apr 2012 16:15:29 +0000 (8 10:15 -0600)
tree77d5e612f2efd1844bb777102067f3f658aa499c
parent7abcd4faa1553fb012020b6204fb8b6208fa5bf2
 - Refactor the way databases are schema-migrated so that load_migrations()
   can be tested separately.
 - Add an `until` argument to load_migrations() so that we can load only up to
   a given timestamp.
 - In load_migrations(), ignore files in which the `version` part of the file
   name is empty.
 - In migrations.rst, use the new, better way of ensuring post-test cleanup.
 - Add tests for partial upgrades.
 - LP: #971013 - schema migrations for beta 2.
 - LP: #967238 - IMailingList.archive + IMailingList.archive_private ->
   IMailingList.archive_policy, and add ArchivePolicy enum.
 - Move the `chdir` context manager to helpers.py and add `temporary_db`
   context manager.
src/mailman/core/initialize.py
src/mailman/database/base.py
src/mailman/database/docs/migration.rst
src/mailman/database/schema/mm_20120407000000.py [new file with mode: 0644]
src/mailman/database/schema/sqlite.sql
src/mailman/database/schema/sqlite_20120407000000_01.sql [new file with mode: 0644]
src/mailman/database/tests/__init__.py [new file with mode: 0644]
src/mailman/database/tests/test_migrations.py [new file with mode: 0644]
src/mailman/interfaces/archiver.py
src/mailman/testing/helpers.py
src/mailman/tests/test_documentation.py