1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 08:12:40 +01:00
phorge-phorge/resources/sql/patches/046.conduittoken.sql

13 lines
426 B
MySQL
Raw Normal View History

CREATE TABLE {$NAMESPACE}_conduit.conduit_certificatetoken (
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
);
ALTER TABLE {$NAMESPACE}_conduit.conduit_certificatetoken
ADD UNIQUE KEY (userPHID);
ALTER TABLE {$NAMESPACE}_conduit.conduit_certificatetoken
ADD UNIQUE KEY (token);