mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-25 13:01:08 +00:00
Define email_singups table
This commit is contained in:
parent
355fd7cb1d
commit
2a31a7b601
4 changed files with 20 additions and 2 deletions
|
@ -1 +1 @@
|
||||||
-- This file should undo anything in `up.sql`
|
DROP TABLE email_signups;
|
||||||
|
|
|
@ -1 +1,9 @@
|
||||||
-- Your SQL goes here
|
CREATE TABLE email_signups (
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
email VARCHAR NOT NULL,
|
||||||
|
token VARCHAR NOT NULL,
|
||||||
|
expiration_date TIMESTAMP NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE INDEX email_signups_token ON email_signups (token);
|
||||||
|
CREATE UNIQUE INDEX email_signups_token_requests_email ON email_signups (email);
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
DROP TABLE email_signups;
|
|
@ -0,0 +1,9 @@
|
||||||
|
CREATE TABLE email_signups (
|
||||||
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||||
|
email VARCHAR NOT NULL,
|
||||||
|
token VARCHAR NOT NULL,
|
||||||
|
expiration_date TIMESTAMP NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE INDEX email_signups_token ON email_signups (token);
|
||||||
|
CREATE UNIQUE INDEX email_signups_token_requests_email ON email_signups (email);
|
Loading…
Reference in a new issue