Commit 6071be86 authored by Barry Warsaw's avatar Barry Warsaw

Only do the cleanup if we're not using SQLite.

parent 53b73e3b
......@@ -199,8 +199,9 @@ You'll notice that the ...04 version is not present.
this will cause migration.rst to fail on subsequent runs. So let's just
clean up the database explicitly.
>>> results = config.db.store.execute("""
... DELETE FROM version WHERE version.version >= '201299990000'
... OR version.component = 'test';
... """)
>>> config.db.commit()
>>> if config.db.TAG != 'sqlite':
... results = config.db.store.execute("""
... DELETE FROM version WHERE version.version >= '201299990000'
... OR version.component = 'test';
... """)
... config.db.commit()
......@@ -28,4 +28,3 @@ INSERT INTO bounceevent_backup SELECT
FROM bounceevent;
ALTER TABLE bounceevent_backup ADD COLUMN list_id TEXT;
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