Revision c17bd3a7

b/docs/quick-install-admin-guide.rst
975 975
     ),
976 976
    }
977 977

  
978
Stamp Database Revision
979
-----------------------
980

  
981
Pithos uses the alembic_ database migrations tool.
982

  
983
.. _alembic: http://alembic.readthedocs.org
984

  
985
After a sucessful installation, we should stamp it with the most recent
986
revision, in order to be able in the future to define the migrations should run
987
in subsequent upgrades.
988

  
989
In order to find the most recent revision, we check the migration history:
990

  
991
.. code-block:: console
992

  
993
    root@node2:~ # pithos-migrate history
994
    2a309a9a3438 -> 27381099d477 (head), alter public add column url
995
    165ba3fbfe53 -> 2a309a9a3438, fix statistics negative population
996
    3dd56e750a3 -> 165ba3fbfe53, update account in paths
997
    230f8ce9c90f -> 3dd56e750a3, Fix latest_version
998
    8320b1c62d9 -> 230f8ce9c90f, alter nodes add column latest version
999
    None -> 8320b1c62d9, create index nodes.parent
1000

  
1001
Finally, we stamp it with the one found in the previous step:
1002

  
1003
.. code-block:: console
1004

  
1005
    root@node2:~ # pithos-migrate stamp 27381099d477
1006

  
978 1007
Servers Initialization
979 1008
----------------------
980 1009

  

Also available in: Unified diff