changeset 3957:b87def4b3cbb beta

Add autoincrement for sqlite into Gist table. Fixes some collision issues with gists after they got deleted
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 06 Jun 2013 23:47:06 +0200
parents 77b12bb00dd6
children 1cb0a1f82fb4
files rhodecode/model/db.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/db.py	Thu Jun 06 23:45:16 2013 +0200
+++ b/rhodecode/model/db.py	Thu Jun 06 23:47:06 2013 +0200
@@ -2137,7 +2137,7 @@
         Index('g_gist_access_id_idx', 'gist_access_id'),
         Index('g_created_on_idx', 'created_on'),
         {'extend_existing': True, 'mysql_engine': 'InnoDB',
-         'mysql_charset': 'utf8'}
+         'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
     )
     GIST_PUBLIC = u'public'
     GIST_PRIVATE = u'private'