~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/database/mailman.sql

  • Committer: Barry Warsaw
  • Date: 2011-09-23 23:47:19 UTC
  • Revision ID: barry@list.org-20110923234719-fp31k6ch59oh3cvf
Improved the way flufl.enum.Enums are stored in the database.  Now, they
should always be stored as INTEGER columns, with the enum class explicitly
described in the code.  This should be more efficient, and besides EIBTI.

Also, filled in a few additional IMailingList attributes which were not
documented in the interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
CREATE TABLE _request (
2
2
    id INTEGER NOT NULL,
3
3
    "key" TEXT,
4
 
    request_type TEXT,
 
4
    request_type INTEGER,
5
5
    data_hash TEXT,
6
6
    mailing_list_id INTEGER,
7
7
    PRIMARY KEY (id),
60
60
    email TEXT,
61
61
    'timestamp' TIMESTAMP,
62
62
    message_id TEXT,
63
 
    context TEXT,
 
63
    context INTEGER,
64
64
    processed BOOLEAN,
65
65
    PRIMARY KEY (id)
66
66
    );
127
127
    autoresponse_request_text TEXT,
128
128
    autoresponse_grace_period TEXT,
129
129
    -- Bounces.
130
 
    forward_unrecognized_bounces_to TEXT,
 
130
    forward_unrecognized_bounces_to INTEGER,
131
131
    process_bounces BOOLEAN,
132
132
    bounce_info_stale_after TEXT,
133
133
    bounce_matching_headers TEXT,
148
148
    digest_is_default BOOLEAN,
149
149
    digest_send_periodic BOOLEAN,
150
150
    digest_size_threshold INTEGER,
151
 
    digest_volume_frequency TEXT,
 
151
    digest_volume_frequency INTEGER,
152
152
    digestable BOOLEAN,
153
153
    discard_these_nonmembers BLOB,
154
154
    emergency BOOLEAN,
172
172
    msg_footer TEXT,
173
173
    msg_header TEXT,
174
174
    new_member_options INTEGER,
175
 
    news_moderation TEXT,
 
175
    news_moderation INTEGER,
176
176
    news_prefix_subject_too BOOLEAN,
177
177
    nntp_host TEXT,
178
178
    nondigestable BOOLEAN,
179
179
    nonmember_rejection_notice TEXT,
180
180
    obscure_addresses BOOLEAN,
181
 
    personalize TEXT,
 
181
    personalize INTEGER,
182
182
    pipeline TEXT,
183
183
    post_id INTEGER,
184
184
    preferred_language TEXT,
185
185
    private_roster BOOLEAN,
186
186
    real_name TEXT,
187
187
    reject_these_nonmembers BLOB,
188
 
    reply_goes_to_list TEXT,
 
188
    reply_goes_to_list INTEGER,
189
189
    reply_to_address TEXT,
190
190
    require_explicit_destination BOOLEAN,
191
191
    respond_to_post_requests BOOLEAN,
208
208
CREATE TABLE member (
209
209
    id INTEGER NOT NULL,
210
210
    _member_id TEXT,
211
 
    role TEXT,
 
211
    role INTEGER,
212
212
    mailing_list TEXT,
213
213
    moderation_action INTEGER,
214
214
    address_id INTEGER,
238
238
    id INTEGER NOT NULL,
239
239
    mailing_list_id INTEGER,
240
240
    address_id INTEGER,
241
 
    delivery_mode TEXT,
 
241
    delivery_mode INTEGER,
242
242
    PRIMARY KEY (id),
243
243
    CONSTRAINT onelastdigest_mailing_list_id_fk
244
244
        FOREIGN KEY (mailing_list_id) REFERENCES mailinglist(id),
270
270
    preferred_language TEXT,
271
271
    receive_list_copy BOOLEAN,
272
272
    receive_own_postings BOOLEAN,
273
 
    delivery_mode TEXT,
274
 
    delivery_status TEXT,
 
273
    delivery_mode INTEGER,
 
274
    delivery_status INTEGER,
275
275
    PRIMARY KEY (id)
276
276
    );
277
277