Add basic logging.
This commit is contained in:
parent
c0669627fa
commit
d4c9973c1e
2 changed files with 72 additions and 23 deletions
|
|
@ -68,6 +68,22 @@ sub installSubscriberAspectTable {
|
|||
primary key( assetId, revisionDate )
|
||||
);
|
||||
EOSQL
|
||||
|
||||
$session->db->write(<<EOSQL2);
|
||||
create table if not exists assetAspectSubscriber_log (
|
||||
assetId char(22) binary not null,
|
||||
requestIp char(15) not null,
|
||||
requestDate bigint(20) not null,
|
||||
confirmationIp char(15),
|
||||
confirmationDate bigint(20),
|
||||
userId char(22) binary not null,
|
||||
email varchar(255) not null,
|
||||
type char(30) not null,
|
||||
anonymous tinyint(1) not null,
|
||||
confirmed tinyint(1) default 0,
|
||||
code char(22) default null
|
||||
);
|
||||
EOSQL2
|
||||
|
||||
print "Done.\n";
|
||||
}
|
||||
|
|
@ -85,17 +101,6 @@ sub installNewsletterCollection {
|
|||
);
|
||||
EOSQL
|
||||
|
||||
$session->db->write(<<EOSQL2);
|
||||
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
|
||||
|
||||
print "Done.\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue