Commit 7921bd2f authored by Grégory Wisniewski's avatar Grégory Wisniewski

Increase column size and change it's type to store UUIDs in hex format.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1260 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7fc94582
...@@ -29,6 +29,7 @@ from neo.protocol import DISCARDED_STATE ...@@ -29,6 +29,7 @@ from neo.protocol import DISCARDED_STATE
from neo import util from neo import util
LOG_QUERIES = False LOG_QUERIES = False
LOG_QUERIES = True
def p64(n): def p64(n):
return pack('!Q', n) return pack('!Q', n)
...@@ -133,7 +134,7 @@ class MySQLDatabaseManager(DatabaseManager): ...@@ -133,7 +134,7 @@ class MySQLDatabaseManager(DatabaseManager):
# The table "pt" stores a partition table. # The table "pt" stores a partition table.
q("""CREATE TABLE IF NOT EXISTS pt ( q("""CREATE TABLE IF NOT EXISTS pt (
rid INT UNSIGNED NOT NULL, rid INT UNSIGNED NOT NULL,
uuid BINARY(16) NOT NULL, uuid CHAR(32) NOT NULL,
state TINYINT UNSIGNED NOT NULL, state TINYINT UNSIGNED NOT NULL,
PRIMARY KEY (rid, uuid) PRIMARY KEY (rid, uuid)
) ENGINE = InnoDB""") ) ENGINE = InnoDB""")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment