Adding subscription confirmation.

This commit is contained in:
Martin Kamerbeek 2010-05-12 13:30:35 +02:00
parent 8abcb9a10e
commit 12e6ba8735
2 changed files with 63 additions and 7 deletions

View file

@ -50,8 +50,9 @@ sub installNewsletterCollection {
$session->db->write(<<EOSQL);
create table if not exists NewsletterCollection (
assetId char(22) binary not null,
revisionDate bigint(20) not null,
assetId char(22) binary not null,
revisionDate bigint(20) not null,
alwaysConfirmSubscription tinyint(1) not null default 0,
primary key( assetId, revisionDate )
);
EOSQL
@ -60,6 +61,9 @@ EOSQL
create table if not exists NewsletterCollection_subscriptions (
assetId char(22) binary not null,
userId char(22) binary not null,
confirmed tinyint(1) default 0,
code char(22) default null,
creationDate timestamp default CURRENT_TIMESTAMP,
primary key( assetId, userId )
);
EOSQL2