[Pypi-checkins] r782 - trunk/pypi/tools

georg.brandl python-checkins at python.org
Fri Jul 23 18:11:10 CEST 2010


Author: georg.brandl
Date: Fri Jul 23 18:11:10 2010
New Revision: 782

Modified:
   trunk/pypi/tools/mksqlite
Log:
SQLite unfortunately does not know about SERIAL.

Modified: trunk/pypi/tools/mksqlite
==============================================================================
--- trunk/pypi/tools/mksqlite	(original)
+++ trunk/pypi/tools/mksqlite	Fri Jul 23 18:11:10 2010
@@ -22,5 +22,6 @@
     if not passthrough:
         print >> sqlite
         continue
-    sqlite.write(line)
+    # make sqlite happy: SERIAL is not a valid type
+    sqlite.write(line.replace('SERIAL PRIMARY KEY', 'INTEGER PRIMARY KEY'))
 sqlite.close()


More information about the Pypi-checkins mailing list