~barry/mailman/bug-1024509

« back to all changes in this revision

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

  • Committer: Barry Warsaw
  • Date: 2012-08-19 22:58:55 UTC
  • Revision ID: barry@list.org-20120819225855-ufwn3hhuyu52i638
 * Removed obsolete `IMailingList` attribute `generic_nonmember_action.
   (LP: #975696)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 - archive, archive_private -> archive_policy
28
28
 
29
29
* Remove:
 
30
 - generic_nonmember_action
30
31
 - nntp_host
31
32
 
32
33
See https://bugs.launchpad.net/mailman/+bug/971013 for details.
130
131
                          archive_policy(archive, archive_private),
131
132
                          id))
132
133
    # Now drop the old columns.
133
 
    store.execute('ALTER TABLE mailinglist DROP COLUMN archive;')
134
 
    store.execute('ALTER TABLE mailinglist DROP COLUMN archive_private;')
 
134
    for column in ('archive', 'archive_private', 'generic_nonmember_action'):
 
135
        store.execute(
 
136
            'ALTER TABLE mailinglist DROP COLUMN {0};'.format(column))
135
137
    # Record the migration in the version table.
136
138
    database.load_schema(store, version, None, module_path)