Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
neoppod
Commits
51c4f647
Commit
51c4f647
authored
Jun 09, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: data.value column never contains NULL
parent
f0713aa3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
neo/storage/database/mysqldb.py
neo/storage/database/mysqldb.py
+1
-1
neo/storage/database/sqlite.py
neo/storage/database/sqlite.py
+1
-1
No files found.
neo/storage/database/mysqldb.py
View file @
51c4f647
...
@@ -197,7 +197,7 @@ class MySQLDatabaseManager(DatabaseManager):
...
@@ -197,7 +197,7 @@ class MySQLDatabaseManager(DatabaseManager):
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
hash BINARY(20) NOT NULL,
hash BINARY(20) NOT NULL,
compression TINYINT UNSIGNED NULL,
compression TINYINT UNSIGNED NULL,
value LONGBLOB NULL,
value LONGBLOB N
OT N
ULL,
UNIQUE (hash, compression)
UNIQUE (hash, compression)
) ENGINE="""
+
engine
)
) ENGINE="""
+
engine
)
...
...
neo/storage/database/sqlite.py
View file @
51c4f647
...
@@ -161,7 +161,7 @@ class SQLiteDatabaseManager(DatabaseManager):
...
@@ -161,7 +161,7 @@ class SQLiteDatabaseManager(DatabaseManager):
id INTEGER PRIMARY KEY AUTOINCREMENT,
id INTEGER PRIMARY KEY AUTOINCREMENT,
hash BLOB NOT NULL,
hash BLOB NOT NULL,
compression INTEGER NOT NULL,
compression INTEGER NOT NULL,
value BLOB NULL)
value BLOB N
OT N
ULL)
"""
)
"""
)
q
(
"""CREATE UNIQUE INDEX IF NOT EXISTS _data_i1 ON
q
(
"""CREATE UNIQUE INDEX IF NOT EXISTS _data_i1 ON
data(hash, compression)
data(hash, compression)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment