* VRFS-259: beta signup
This commit is contained in:
parent
b502877720
commit
080ba4fef7
|
|
@ -0,0 +1,4 @@
|
|||
-- make your life easy and use this name for your encrypted password
|
||||
ALTER TABLE users RENAME COLUMN password_digest TO encrypted_password;
|
||||
|
||||
DROP TABLE admin_users;
|
||||
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE users ALTER gender DROP DEFAULT;
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
-- a table to manage invitations from one user to another
|
||||
CREATE TABLE invited_users (
|
||||
id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
sender_id VARCHAR(64) REFERENCES users(id) ON DELETE CASCADE,
|
||||
autofriend BOOLEAN NOT NULL,
|
||||
email VARCHAR(256) NOT NULL,
|
||||
invitation_code VARCHAR(256) UNIQUE NOT NULL,
|
||||
accepted BOOLEAN DEFAULT FALSE,
|
||||
note text,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE users ADD COLUMN subscribe_email BOOLEAN DEFAULT false;
|
||||
Loading…
Reference in New Issue