Permalink
Browse files

Fix schema syntax

  • Loading branch information...
1 parent 9905036 commit a05c2bbba92001b462e227ff7e0aa29a919470b6 @harryf committed Jan 26, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 dammit/db_mysql.py
View
@@ -229,7 +229,7 @@ def bootstrap(self, dropfirst = False):
sql = """CREATE TABLE IF NOT EXISTS urldammit_tags (
id BINARY( 40 ) NOT NULL ,
- tag VARCHAR( %s ) NOT NULL
+ tag VARCHAR( %s ) NOT NULL ,
KEY id_index (id)
) ENGINE = innodb CHARACTER SET utf8 COLLATE utf8_unicode_ci;
""" % ( constants.URI_TAG_LEN )
@@ -238,7 +238,7 @@ def bootstrap(self, dropfirst = False):
sql = """CREATE TABLE IF NOT EXISTS urldammit_pairs (
id BINARY( 40 ) NOT NULL ,
pair_key VARCHAR( %s ) NOT NULL ,
- pair_value VARCHAR( %s ) NOT NULL
+ pair_value VARCHAR( %s ) NOT NULL ,
KEY id_index (id)
) ENGINE = innodb CHARACTER SET utf8 COLLATE utf8_unicode_ci;
""" % ( constants.URI_PAIR_KEY_LEN, constants.URI_PAIR_VALUE_LEN )

0 comments on commit a05c2bb

Please sign in to comment.