From: Andrew Dolgov Date: Thu, 10 Nov 2011 20:02:16 +0000 (+0400) Subject: fix drop table X-Git-Tag: 1.5.7~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=17140b71edaad9160742a33f094f94479bbbd573;p=tt-rss.git fix drop table --- diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 1b065b4c..6e56134f 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -1,34 +1,34 @@ -drop table ttrss_linked_feeds; -drop table ttrss_linked_instances; -drop table ttrss_access_keys; -drop table ttrss_user_labels2; -drop table ttrss_labels2; -drop table ttrss_feedbrowser_cache; -drop table ttrss_version; -drop table ttrss_labels; -drop table ttrss_filters; -drop table ttrss_filter_types; -drop table ttrss_filter_actions; -drop table ttrss_user_prefs; -drop table ttrss_prefs; -drop table ttrss_prefs_types; -drop table ttrss_prefs_sections; -drop table ttrss_tags; -drop table ttrss_enclosures; -drop table ttrss_settings_profiles; -drop table ttrss_entry_comments; -drop table ttrss_user_entries; -drop table ttrss_entries; -drop table ttrss_scheduled_updates; -drop table ttrss_counters_cache; -drop table ttrss_cat_counters_cache; -drop table ttrss_archived_feeds; -drop table ttrss_feeds; -drop table ttrss_feed_categories; -drop table ttrss_users; -drop table ttrss_themes; -drop table ttrss_sessions; -drop function SUBSTRING_FOR_DATE(timestamp, int, int); +drop table if exists ttrss_linked_feeds; +drop table if exists ttrss_linked_instances; +drop table if exists ttrss_access_keys; +drop table if exists ttrss_user_labels2; +drop table if exists ttrss_labels2; +drop table if exists ttrss_feedbrowser_cache; +drop table if exists ttrss_version; +drop table if exists ttrss_labels; +drop table if exists ttrss_filters; +drop table if exists ttrss_filter_types; +drop table if exists ttrss_filter_actions; +drop table if exists ttrss_user_prefs; +drop table if exists ttrss_prefs; +drop table if exists ttrss_prefs_types; +drop table if exists ttrss_prefs_sections; +drop table if exists ttrss_tags; +drop table if exists ttrss_enclosures; +drop table if exists ttrss_settings_profiles; +drop table if exists ttrss_entry_comments; +drop table if exists ttrss_user_entries; +drop table if exists ttrss_entries; +drop table if exists ttrss_scheduled_updates; +drop table if exists ttrss_counters_cache; +drop table if exists ttrss_cat_counters_cache; +drop table if exists ttrss_archived_feeds; +drop table if exists ttrss_feeds; +drop table if exists ttrss_feed_categories; +drop table if exists ttrss_users; +drop table if exists ttrss_themes; +drop table if exists ttrss_sessions; +drop function if exists SUBSTRING_FOR_DATE(timestamp, int, int); begin;