diff options
author | Andrew Dolgov <[email protected]> | 2005-11-16 08:24:43 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-16 08:24:43 +0100 |
commit | 1089b16bc2dccbfba226fbd7d98b7535203449d2 (patch) | |
tree | 688a8df7bc7fd9edb7770b4ae6d616d3b56003ea /schema/upgrade-1.0.7-1.0.8-pgsql.sql | |
parent | e28f43f9657b61bb79380abca3a72f525211c152 (diff) |
add purge_interval in ttrss_feeds (schema updated)
Diffstat (limited to 'schema/upgrade-1.0.7-1.0.8-pgsql.sql')
-rw-r--r-- | schema/upgrade-1.0.7-1.0.8-pgsql.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/schema/upgrade-1.0.7-1.0.8-pgsql.sql b/schema/upgrade-1.0.7-1.0.8-pgsql.sql new file mode 100644 index 000000000..abae1c684 --- /dev/null +++ b/schema/upgrade-1.0.7-1.0.8-pgsql.sql @@ -0,0 +1,12 @@ +begin; + +alter table ttrss_feeds add column purge_interval integer; + +update ttrss_feeds set purge_interval = 0; + +alter table ttrss_feeds alter column purge_interval set not null; +alter table ttrss_feeds alter column purge_interval set default 0; + +update ttrss_version set schema_version = 2; + +commit; |