#21: Oops! Forgot the organisers

Also tidied up the 'add-user-table' migration, which was actually just part of the how-to-get-started-with-migratus stuff and we don't need.
This commit is contained in:
simon 2017-03-15 20:15:49 +00:00
parent d83a7924e2
commit 0db6a2b918
4 changed files with 6 additions and 10 deletions

View file

@ -1 +0,0 @@
DROP TABLE users;

View file

@ -1,9 +0,0 @@
CREATE TABLE users
(id VARCHAR(20) PRIMARY KEY,
first_name VARCHAR(30),
last_name VARCHAR(30),
email VARCHAR(30),
admin BOOLEAN,
last_login TIME,
is_active BOOLEAN,
pass VARCHAR(300));

View file

@ -1,5 +1,7 @@
drop table teammemberships; drop table teammemberships;
drop table teamorganiserships;
drop index ix_teams_name; drop index ix_teams_name;
drop table teams; drop table teams;

View file

@ -25,6 +25,10 @@ create table if not exists teammemberships (
canvasser_id integer not null references canvassers(id) canvasser_id integer not null references canvassers(id)
); );
create table if not exists teamorganiserships (
team_id integer not null references teams(id),
canvasser_id integer not null references canvassers(id)
);
alter table roles owner to youyesyet; alter table roles owner to youyesyet;