Skip to content

Commit

Permalink
Merge pull request #4 from skoolkid/sqlite-1.0.184
Browse files Browse the repository at this point in the history
Update ZXDB_to_SQLite.py for 1.0.184
  • Loading branch information
einar-saukas authored Feb 17, 2024
2 parents 6f2f8b8 + 6eeeb6b commit a411193
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/ZXDB_to_SQLite.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
# convert escaped single quotes
line = line.replace(r"\'","''")
# change collation
line = line.replace('utf8_bin','rtrim')
line = line.replace('utf8_bin','rtrim').replace('utf8_unicode_ci','rtrim')
# remove character set
line = line.replace('CHARACTER SET utf8', '')
# get rid of auto-increment, as SQLite doesn't support it well enough
line = line.replace('AUTO_INCREMENT','')
# tidy up MySql-isms from end of table definitions
Expand Down

0 comments on commit a411193

Please sign in to comment.