[entropy.db] doDatabaseExport: always exclude sqlite tables

This commit is contained in:
Fabio Erculiani
2010-01-29 23:12:50 +01:00
parent 719a59ef5c
commit b23b3cd790
+6 -10
View File
@@ -6450,17 +6450,13 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface):
header = " "
)
if name == "sqlite_sequence":
dumpfile.write(toraw("DELETE FROM sqlite_sequence;\n"))
elif name == "sqlite_stat1":
dumpfile.write(toraw("ANALYZE sqlite_master;\n"))
elif name.startswith("sqlite_"):
if name.startswith("sqlite_"):
continue
else:
t_cmd = "CREATE TABLE"
if sql.startswith(t_cmd) and gentle_with_tables:
sql = "CREATE TABLE IF NOT EXISTS"+sql[len(t_cmd):]
dumpfile.write(toraw("%s;\n" % sql))
t_cmd = "CREATE TABLE"
if sql.startswith(t_cmd) and gentle_with_tables:
sql = "CREATE TABLE IF NOT EXISTS"+sql[len(t_cmd):]
dumpfile.write(toraw("%s;\n" % sql))
if name in exclude_tables:
continue