2012-04-30 16:53:53 +02:00
|
|
|
CREATE TABLE {$NAMESPACE}_conduit.conduit_certificatetoken (
|
2011-06-14 21:17:14 +02:00
|
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
userPHID VARCHAR(64) BINARY NOT NULL,
|
|
|
|
token VARCHAR(64),
|
|
|
|
dateCreated INT UNSIGNED NOT NULL,
|
2011-06-20 14:59:42 +02:00
|
|
|
dateModified INT UNSIGNED NOT NULL
|
2011-06-14 21:17:14 +02:00
|
|
|
);
|
|
|
|
|
2012-04-30 16:53:53 +02:00
|
|
|
ALTER TABLE {$NAMESPACE}_conduit.conduit_certificatetoken
|
2011-06-14 21:17:14 +02:00
|
|
|
ADD UNIQUE KEY (userPHID);
|
2012-04-30 16:53:53 +02:00
|
|
|
ALTER TABLE {$NAMESPACE}_conduit.conduit_certificatetoken
|
2011-06-14 21:17:14 +02:00
|
|
|
ADD UNIQUE KEY (token);
|