summaryrefslogtreecommitdiff
path: root/schema/versions
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-05-11 23:32:16 +0400
committerAndrew Dolgov <[email protected]>2009-05-11 23:32:16 +0400
commitf574fec6a6cd32f8c1582399cb4796974327df96 (patch)
tree7fa7bafd26184b45b9fe81de98f86528d8e489d8 /schema/versions
parent42a5226a748a44ce8fac78414a9f85049cef2c91 (diff)
workaround against ttrss_enclosures mysql data being wrong (nukes the enclosures table)
Diffstat (limited to 'schema/versions')
-rw-r--r--schema/versions/mysql/56.sql16
-rw-r--r--schema/versions/pgsql/56.sql5
2 files changed, 21 insertions, 0 deletions
diff --git a/schema/versions/mysql/56.sql b/schema/versions/mysql/56.sql
new file mode 100644
index 000000000..af2fb8209
--- /dev/null
+++ b/schema/versions/mysql/56.sql
@@ -0,0 +1,16 @@
+begin;
+
+drop table ttrss_enclosures;
+
+create table ttrss_enclosures (id serial not null primary key,
+ content_url text not null,
+ content_type varchar(250) not null,
+ post_id integer not null,
+ title text not null,
+ duration text not null,
+ index (post_id),
+ foreign key (post_id) references ttrss_entries(id) ON DELETE cascade) TYPE=InnoDB;
+
+update ttrss_version set schema_version = 56;
+
+commit;
diff --git a/schema/versions/pgsql/56.sql b/schema/versions/pgsql/56.sql
new file mode 100644
index 000000000..d6d57f03a
--- /dev/null
+++ b/schema/versions/pgsql/56.sql
@@ -0,0 +1,5 @@
+begin;
+
+update ttrss_version set schema_version = 56;
+
+commit;