#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:
parent
d83a7924e2
commit
0db6a2b918
|
@ -1 +0,0 @@
|
||||||
DROP TABLE users;
|
|
|
@ -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));
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue