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
Iliya Manolov
neoppod
Commits
02a5b4e3
Commit
02a5b4e3
authored
Jun 30, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add upgrade notes about MySQL/SQLite schema changes since NEO 1.3
parent
58774fb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
UPGRADE
UPGRADE
+36
-0
No files found.
UPGRADE
View file @
02a5b4e3
NEO 1.4
=======
The schema of `data` table in MySQL/SQLite backends has changed and there is
no transparent migration because the changes are optional and this table may
be huge. You can either use the following SQL commands to upgrade each storage,
or migrate data to new nodes with replication.
MySQL
-----
::
ALTER TABLE data
-- minor optimization
MODIFY value MEDIUMBLOB NOT NULL,
-- fix store of multiple values that only differ by the compression flag
DROP KEY hash, ADD UNIQUE (hash, compression);
SQLite
------
::
-- In SQLite, ALTER TABLE is limited so it's all or nothing
-- (here the added 'NOT NULL' on value column is cosmetic)
CREATE TABLE new_data (
id INTEGER PRIMARY KEY AUTOINCREMENT,
hash BLOB NOT NULL,
compression INTEGER NOT NULL,
value BLOB NOT NULL);
INSERT INTO new_data SELECT * FROM data;
CREATE UNIQUE INDEX IF NOT EXISTS _data_i1 ON new_data(hash, compression);
DROP TABLE data;
ALTER TABLE new_data RENAME TO data;
NEO 1.0
=======
...
...
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