* merging manually database migrations from the master branch now, because I need to preserve db lineage with www as a priority

This commit is contained in:
Seth Call 2014-05-01 15:04:23 -05:00
parent a11dd664ce
commit 65fb0511c6
4 changed files with 18 additions and 1 deletions

View File

@ -146,3 +146,6 @@ bands_did_session.sql
email_change_default_sender.sql
affiliate_partners.sql
chat_messages.sql
diagnostics.sql
user_mods.sql
connection_stale_expire.sql

View File

@ -0,0 +1,2 @@
ALTER TABLE connections ADD COLUMN stale_time INTEGER NOT NULL DEFAULT 40;
ALTER TABLE connections ADD COLUMN expire_time INTEGER NOT NULL DEFAULT 60;

11
db/up/diagnostics.sql Normal file
View File

@ -0,0 +1,11 @@
CREATE TABLE diagnostics
(
id VARCHAR(64) NOT NULL DEFAULT uuid_generate_v4(),
user_id VARCHAR(64) NOT NULL REFERENCES users (id) ON DELETE CASCADE,
type VARCHAR(255) NOT NULL,
creator VARCHAR(255) NOT NULL,
data TEXT,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX diagnostics_type_idx ON diagnostics(type);

1
db/up/user_mods.sql Normal file
View File

@ -0,0 +1 @@
ALTER TABLE users ADD COLUMN mods JSON;