Add a table to hold the preview files

This commit is contained in:
Eike Kettner
2020-11-08 00:14:51 +01:00
parent 350a271b22
commit 0841a33ae3
5 changed files with 125 additions and 2 deletions

View File

@ -0,0 +1,8 @@
CREATE TABLE "attachment_preview" (
"id" varchar(254) not null primary key,
"file_id" varchar(254) not null,
"filename" varchar(254),
"created" timestamp not null,
foreign key ("file_id") references "filemeta"("id"),
foreign key ("id") references "attachment"("attachid")
);

View File

@ -0,0 +1,8 @@
CREATE TABLE `attachment_preview` (
`id` varchar(254) not null primary key,
`file_id` varchar(254) not null,
`filename` varchar(254),
`created` timestamp not null,
foreign key (`file_id`) references `filemeta`(`id`),
foreign key (`id`) references `attachment`(`attachid`)
);

View File

@ -0,0 +1,8 @@
CREATE TABLE "attachment_preview" (
"id" varchar(254) not null primary key,
"file_id" varchar(254) not null,
"filename" varchar(254),
"created" timestamp not null,
foreign key ("file_id") references "filemeta"("id"),
foreign key ("id") references "attachment"("attachid")
);