Commit 51c4f647 by Julien Muchembled

storage: data.value column never contains NULL

1 parent f0713aa3
......@@ -197,7 +197,7 @@ class MySQLDatabaseManager(DatabaseManager):
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
hash BINARY(20) NOT NULL,
compression TINYINT UNSIGNED NULL,
value LONGBLOB NULL,
value LONGBLOB NOT NULL,
UNIQUE (hash, compression)
) ENGINE=""" + engine)
......
......@@ -161,7 +161,7 @@ class SQLiteDatabaseManager(DatabaseManager):
id INTEGER PRIMARY KEY AUTOINCREMENT,
hash BLOB NOT NULL,
compression INTEGER NOT NULL,
value BLOB NULL)
value BLOB NOT NULL)
""")
q("""CREATE UNIQUE INDEX IF NOT EXISTS _data_i1 ON
data(hash, compression)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!