Commit ebe6c82d authored by Alexandre Boeglin's avatar Alexandre Boeglin

replace DROP TABLE by DROP TABLE IF EXISTS, so that no exception is raised...

replace DROP TABLE by DROP TABLE IF EXISTS, so that no exception is raised when calling clearCatalog on a database with no tables.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10952 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d97511cb
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE catalog</string> </value>
<value> <string>DROP TABLE IF EXISTS catalog</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE catalog</string> </value>
<value> <string>DROP TABLE IF EXISTS catalog</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE category</string> </value>
<value> <string>DROP TABLE IF EXISTS category</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE category</string> </value>
<value> <string>DROP TABLE IF EXISTS category</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE compatibility</string> </value>
<value> <string>DROP TABLE IF EXISTS compatibility</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE compatibility</string> </value>
<value> <string>DROP TABLE IF EXISTS compatibility</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE delivery\n
<value> <string>DROP TABLE IF EXISTS delivery\n
</string> </value>
</item>
<item>
......@@ -126,7 +126,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE delivery\n
<value> <string>DROP TABLE IF EXISTS delivery\n
</string> </value>
</item>
</dictionary>
......
......@@ -97,7 +97,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE full_text</string> </value>
<value> <string>DROP TABLE IF EXISTS full_text</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -131,7 +131,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE full_text</string> </value>
<value> <string>DROP TABLE IF EXISTS full_text</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE item\n
<value> <string>DROP TABLE IF EXISTS item\n
</string> </value>
</item>
<item>
......@@ -126,7 +126,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE item\n
<value> <string>DROP TABLE IF EXISTS item\n
</string> </value>
</item>
</dictionary>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE movement</string> </value>
<value> <string>DROP TABLE IF EXISTS movement</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE movement</string> </value>
<value> <string>DROP TABLE IF EXISTS movement</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE portal_ids</string> </value>
<value> <string>DROP TABLE IF EXISTS portal_ids</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE portal_ids</string> </value>
<value> <string>DROP TABLE IF EXISTS portal_ids</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE predicate\n
<value> <string>DROP TABLE IF EXISTS predicate\n
</string> </value>
</item>
<item>
......@@ -126,7 +126,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE predicate\n
<value> <string>DROP TABLE IF EXISTS predicate\n
</string> </value>
</item>
</dictionary>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE predicate_category\n
<value> <string>DROP TABLE IF EXISTS predicate_category\n
</string> </value>
</item>
<item>
......@@ -126,7 +126,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE predicate_category\n
<value> <string>DROP TABLE IF EXISTS predicate_category\n
</string> </value>
</item>
</dictionary>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE record</string> </value>
<value> <string>DROP TABLE IF EXISTS record</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE record</string> </value>
<value> <string>DROP TABLE IF EXISTS record</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE roles_and_users</string> </value>
<value> <string>DROP TABLE IF EXISTS roles_and_users</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE roles_and_users</string> </value>
<value> <string>DROP TABLE IF EXISTS roles_and_users</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE stock</string> </value>
<value> <string>DROP TABLE IF EXISTS stock</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE stock</string> </value>
<value> <string>DROP TABLE IF EXISTS stock</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE subject</string> </value>
<value> <string>DROP TABLE IF EXISTS subject</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE subject</string> </value>
<value> <string>DROP TABLE IF EXISTS subject</string> </value>
</item>
</dictionary>
</state>
......
......@@ -91,7 +91,7 @@
</item>
<item>
<key> <string>src</string> </key>
<value> <string>DROP TABLE translation</string> </value>
<value> <string>DROP TABLE IF EXISTS translation</string> </value>
</item>
<item>
<key> <string>template</string> </key>
......@@ -125,7 +125,7 @@
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE translation</string> </value>
<value> <string>DROP TABLE IF EXISTS translation</string> </value>
</item>
</dictionary>
</state>
......
......@@ -45,7 +45,7 @@
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_0</string>
</list>
</value>
</item>
......
......@@ -45,7 +45,7 @@
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_0</string>
</list>
</value>
</item>
......
116
\ No newline at end of file
117
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment