refactoring #19: rename column workgroup to workgroup_id
This commit is contained in:
1 parent
6eb3991a52
commit
6385e010a2
2 files changed
+5
-5
No files matched your search
@@ -13,7 +13,7 @@ begin
|
|||||||
z.id
|
z.id
|
||||||
from (select *, row_number() over () rn from citizen) z;
|
from (select *, row_number() over () rn from citizen) z;
|
||||||
|
|
||||||
insert into citizen_in_workgroup (citizen_id, workgroup)
|
insert into citizen_in_workgroup (citizen_id, workgroup_id)
|
||||||
select
|
select
|
||||||
z.id,
|
z.id,
|
||||||
w.id
|
w.id
|
||||||
|
|||||||
@@ -37,10 +37,10 @@ create table workgroup
|
|||||||
|
|
||||||
create table citizen_in_workgroup
|
create table citizen_in_workgroup
|
||||||
(
|
(
|
||||||
citizen_id uuid not null references citizen (id),
|
citizen_id uuid not null references citizen (id),
|
||||||
workgroup uuid not null references workgroup (id),
|
workgroup_id uuid not null references workgroup (id),
|
||||||
created_at timestamptz default now() not null,
|
created_at timestamptz default now() not null,
|
||||||
primary key (citizen_id, workgroup)
|
primary key (citizen_id, workgroup_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
create table moderator
|
create table moderator
|
||||||
|
|||||||
Reference in new issue
Block a user