diff --git a/scripts/sqlite2mysql.py b/scripts/sqlite2mysql.py index 8b309852..176ba737 100644 --- a/scripts/sqlite2mysql.py +++ b/scripts/sqlite2mysql.py @@ -41,7 +41,7 @@ def has_primary_key(line): if re.match(r'^CREATE TABLE.*', line): searching_for_end = True - m = re.search('CREATE TABLE [`"]?(\w*)[`"]?(.*)', line) + m = re.search('CREATE TABLE IF NOT EXISTS [`"]?(\w*)[`"]?(.*)', line) if m: name, sub = m.groups() sub = sub.replace('"','`')