more changes to file_id copied from mysql schema change in 05e5122802
This commit is contained in:
parent
91f3ddca55
commit
57f53869e2
|
@ -488,8 +488,7 @@ create table file_redirection (
|
||||||
|
|
||||||
create sequence file_thumbnail_seq;
|
create sequence file_thumbnail_seq;
|
||||||
create table file_thumbnail (
|
create table file_thumbnail (
|
||||||
id bigint default nextval('file_thumbnail_seq') primary key /* comment 'unique identifier' */,
|
file_id bigint primary key,
|
||||||
file_id bigint unique,
|
|
||||||
url varchar(255) unique,
|
url varchar(255) unique,
|
||||||
width integer,
|
width integer,
|
||||||
height integer
|
height integer
|
||||||
|
@ -497,11 +496,10 @@ create table file_thumbnail (
|
||||||
|
|
||||||
create sequence file_to_post_seq;
|
create sequence file_to_post_seq;
|
||||||
create table file_to_post (
|
create table file_to_post (
|
||||||
id bigint default nextval('file_to_post_seq') primary key /* comment 'unique identifier' */,
|
|
||||||
file_id bigint,
|
file_id bigint,
|
||||||
post_id bigint,
|
post_id bigint,
|
||||||
|
|
||||||
unique(file_id, post_id)
|
primary key (file_id, post_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
create table group_block (
|
create table group_block (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user