Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synnefo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
synnefo
Commits
934b0d27
Commit
934b0d27
authored
Apr 05, 2013
by
Sofia Papagiannaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pithos installation guide
Refs: #3519 Add a stamp database revision section in the guide.
parent
8fd7cf9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
docs/quick-install-admin-guide.rst
docs/quick-install-admin-guide.rst
+29
-0
No files found.
docs/quick-install-admin-guide.rst
View file @
934b0d27
...
...
@@ -975,6 +975,35 @@ like this:
),
}
Stamp Database Revision
-----------------------
Pithos uses the alembic_ database migrations tool.
.. _alembic: http://alembic.readthedocs.org
After a sucessful installation, we should stamp it with the most recent
revision, in order to be able in the future to define the migrations should run
in subsequent upgrades.
In order to find the most recent revision, we check the migration history:
.. code-block:: console
root@node2:~ # pithos-migrate history
2a309a9a3438 -> 27381099d477 (head), alter public add column url
165ba3fbfe53 -> 2a309a9a3438, fix statistics negative population
3dd56e750a3 -> 165ba3fbfe53, update account in paths
230f8ce9c90f -> 3dd56e750a3, Fix latest_version
8320b1c62d9 -> 230f8ce9c90f, alter nodes add column latest version
None -> 8320b1c62d9, create index nodes.parent
Finally, we stamp it with the one found in the previous step:
.. code-block:: console
root@node2:~ # pithos-migrate stamp 27381099d477
Servers Initialization
----------------------
...
...
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