Fix unique foreign key in view (#1395)

This commit is contained in:
Steve Chávez
2019-10-16 12:45:38 -05:00
committed by GitHub
parent a3701f5de8
commit 80f763448f
7 changed files with 53 additions and 2 deletions
+14
View File
@@ -1759,3 +1759,17 @@ create table app_users (
email text unique not null,
password text not null
);
create table private.pages (
link int not null unique
, url text
);
create table private.referrals (
site text
, link int references private.pages(link) not null
);
create view test.pages as select * from private.pages;
create view test.referrals as select * from private.referrals;