Merge remote-tracking branch 'origin/feature/28' into feature/28

This commit is contained in:
Simon Brooke 2018-06-03 08:54:50 +01:00
commit ad8563d668
10 changed files with 1904 additions and 907 deletions

View file

@ -0,0 +1 @@
alter table issues drop column current;

View file

@ -0,0 +1,2 @@
alter table issues add column current boolean default true;

View file

@ -0,0 +1,8 @@
alter table electors
add column address_id references addresses on delete no action;
update electors
set address_id =
(select address_id
from dwellings
where dwellings.id electors.dwelling_id);

View file

@ -0,0 +1,11 @@
CREATE TABLE dwellings
(
id INT NOT NULL PRIMARY KEY,
address_id INT NOT NULL references addresses on delete no action,
sub_address VARCHAR( 32)
);
alter table electors
add column dwelling_id int references dwellings on delete no action;
alter table electors drop column address_id;

File diff suppressed because it is too large Load diff