summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/08to09.sql2
-rw-r--r--db/laconica.sql1
-rw-r--r--db/laconica_pg.sql1
3 files changed, 4 insertions, 0 deletions
diff --git a/db/08to09.sql b/db/08to09.sql
index 4d1830611..223a99fa3 100644
--- a/db/08to09.sql
+++ b/db/08to09.sql
@@ -10,3 +10,5 @@ alter table profile
alter table user_group
modify column description text comment 'group description';
+alter table file_oembed
+ add column mimetype varchar(50) comment 'mime type of resource';
diff --git a/db/laconica.sql b/db/laconica.sql
index 1662ef7a8..fe93f26ac 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -450,6 +450,7 @@ create table file_oembed (
file_id integer primary key comment 'oEmbed for that URL/file' references file (id),
version varchar(20) comment 'oEmbed spec. version',
type varchar(20) comment 'oEmbed type: photo, video, link, rich',
+ mimetype varchar(50) comment 'mime type of resource',
provider varchar(50) comment 'name of this oEmbed provider',
provider_url varchar(255) comment 'URL of this oEmbed provider',
width integer comment 'width of oEmbed resource when available',
diff --git a/db/laconica_pg.sql b/db/laconica_pg.sql
index b5626d3f4..5b4d0485a 100644
--- a/db/laconica_pg.sql
+++ b/db/laconica_pg.sql
@@ -465,6 +465,7 @@ create table file_oembed (
file_id bigint default nextval('file_oembed_seq') primary key /* comment 'unique identifier' */,
version varchar(20),
type varchar(20),
+ mimetype varchar(50),
provider varchar(50),
provider_url varchar(255),
width integer,