~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/database/schema/mm_20120407000000.py

  • Committer: Barry Warsaw
  • Date: 2012-10-16 22:40:12 UTC
  • Revision ID: barry@list.org-20121016224012-xxrd5zgkwdrmh9y4
Database
--------
 * 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``.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
def upgrade_postgres(database, store, version, module_path):
150
150
    # Get the old values from the mailinglist table.
151
151
    results = store.execute("""
152
 
        SELECT id, archive, archive_private, list_name, mail_host 
 
152
        SELECT id, archive, archive_private, list_name, mail_host
153
153
        FROM mailinglist;
154
154
        """)
155
155
    # Do the simple renames first.