Migrate bounceevent.list_name -> bounceevent.list_id
commitd146f14b3eef9f608c0e03347c135062bade8ced
authorBarry Warsaw <barry@list.org>
Sun, 1 Sep 2013 15:15:08 +0000 (1 11:15 -0400)
committerBarry Warsaw <barry@list.org>
Sun, 1 Sep 2013 15:15:08 +0000 (1 11:15 -0400)
tree5a1f2f576dd7d5dcce4d6903df5cc4b6cb754815
parent41059ed20ec668baf41cceaf539f8017171e9651
Migrate bounceevent.list_name -> bounceevent.list_id

* Rename StormBaseDatabase._create() -> .initialize()
* Refactor database initialization.
* make_listid() helper.
* Add a pivot() helper for schema migrations.
17 files changed:
src/mailman/database/base.py
src/mailman/database/docs/migration.rst
src/mailman/database/factory.py
src/mailman/database/schema/helpers.py [new file with mode: 0644]
src/mailman/database/schema/mm_20120407000000.py
src/mailman/database/schema/mm_20121015000000.py
src/mailman/database/schema/mm_20130406000000.py [new file with mode: 0644]
src/mailman/database/schema/sqlite_20120407000000_01.sql
src/mailman/database/schema/sqlite_20121015000000_01.sql
src/mailman/database/schema/sqlite_20130406000000_01.sql [new file with mode: 0644]
src/mailman/database/tests/test_migrations.py
src/mailman/interfaces/bounce.py
src/mailman/model/bounce.py
src/mailman/model/docs/bounce.rst
src/mailman/model/tests/test_bounce.py
src/mailman/runners/tests/test_bounce.py
src/mailman/runners/tests/test_outgoing.py