* VRFS-92 merged

This commit is contained in:
Seth Call 2012-11-15 20:49:08 -06:00
commit 0aeea606fd
4 changed files with 23 additions and 0 deletions

View File

@ -49,5 +49,11 @@ psql jam
> select * from pgmigrate.pg_migrate;
# If your database is screwed up, do this:
dropdb jam
createdb jam
migrate.sh
END

View File

@ -14,4 +14,6 @@ first_last_name.sql
account_fields.sql
signup.sql
bootstrap_users_v2.sql
drop_users_name.sql
user_authorizations.sql
music_session_all_params.sql

1
up/drop_users_name.sql Normal file
View File

@ -0,0 +1 @@
alter table users drop column name;

View File

@ -0,0 +1,14 @@
CREATE TABLE user_authorizations (
id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(),
user_id VARCHAR(64) REFERENCES users(id) ON DELETE CASCADE,
uid VARCHAR(255) NOT NULL,
provider VARCHAR(255) NOT NULL,
token VARCHAR(255) NULL,
token_expiration TIMESTAMP NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX user_authorizations_user_id_idx ON user_authorizations(user_id);