add new schema

This commit is contained in:
Jay 2019-05-22 22:25:56 +08:00
parent 899a2fb0f2
commit 2e1f513107
2 changed files with 29 additions and 0 deletions

25
20190522-1.sql Normal file
View File

@ -0,0 +1,25 @@
create table instagram
(
id varchar(256) not null
constraint instagram_pk
primary key,
lastpost varchar(256) default '' not null,
ctime timestamp with time zone default current_timestamp not null,
mtime timestamp with time zone default current_timestamp not null
);
create table line_ig_rt
(
line varchar(100) not null
constraint line_ig_rt_line_group_id_fk
references line_group
on delete cascade,
ig varchar(256) not null
constraint line_ig_rt_instagram_id_fk
references instagram
on delete cascade,
tmpl varchar(512) default '' not null,
constraint line_ig_rt_pk
primary key (line, ig)
);

View File

@ -22,7 +22,11 @@
{"file": "20180928-1.sql", "version": 20},
{"file": "20181001-1.sql", "version": 21},
{"file": "20181010-1.sql", "version": 22},
<<<<<<< Updated upstream
{"file": "20190305-1.sql", "version": 23}
=======
{"file": "20190522-1.sql", "version": 23}
>>>>>>> Stashed changes
],
"test": []
}