summaryrefslogtreecommitdiff
path: root/src/mailman/database/docs
Commit message (Collapse)AuthorAgeFilesLines
* Migrations will be replaced with Alchemy.Barry Warsaw2014-09-222-207/+0
| | | | | | We don't need the raw SQL schema stuff any more. We don't need the Version table any more.
* Test repair:Barry Warsaw2014-09-211-0/+0
| | | | | | | | * Remove an unused import. * Add skips for all migration unit tests. * Fix model class attribute typo. * .values() returns tuples, so adjust for that. * Add a test.
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-12/+12
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* Only do the cleanup if we're not using SQLite.Barry Warsaw2013-10-241-5/+6
|
* Migrate bounceevent.list_name -> bounceevent.list_idBarry Warsaw2013-09-011-19/+24
| | | | | | | * Rename StormBaseDatabase._create() -> .initialize() * Refactor database initialization. * make_listid() helper. * Add a pivot() helper for schema migrations.
* DatabaseBarry Warsaw2012-10-161-1/+6
| | | | | | | | | | | | -------- * The `ban` table now uses list-ids to cross-reference the mailing list, since these cannot change even if the mailing list is moved or renamed. Interfaces ---------- * The `IBanManager` is no longer a global utility. Instead, you adapt an `IMailingList` to an `IBanManager` to manage the bans for a specific mailing list. To manage the global bans, adapt ``None``.
* A few fixes for schema migration on PostgreSQL.Barry Warsaw2012-08-201-0/+14
| | | | | | | | | - migration.rst needs special cleanup since the Version table is no longer wiped by the test machinery. This only caused failures when running the migration.rst test multiple times, and only on PostgreSQL. - Complete the removal of archive_volume_frequency and generic_nonmember_action for PostgreSQL. - Remove setting archive_volume_frequency in the default style.
* Get test suite completely working:Barry Warsaw2012-07-201-24/+29
| | | | | | | - migrations.rst needs to handle new standard migration - Add ResetHelper() to refactor out common migration test cooperation. - Handle temporary database. - Fix some attribute names.
* - Refactor the way databases are schema-migrated so that load_migrations()Barry Warsaw2012-04-081-5/+36
| | | | | | | | | | | | | | | 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.
* Reserve the mm_ prefix for MailmanBarry Warsaw2012-03-051-5/+6
|
* * Schema migrations have been implemented.Barry Warsaw2012-02-122-0/+145