Show More
@@ -88,6 +88,8 b' If you originally installed from version' | |||
|
88 | 88 | pip install --upgrade -e . |
|
89 | 89 | kallithea-cli front-end-build |
|
90 | 90 | |
|
91 | .. _upgrade_config: | |
|
92 | ||
|
91 | 93 | |
|
92 | 94 | 5. Upgrade your configuration |
|
93 | 95 | ----------------------------- |
@@ -116,7 +118,7 b' 6. Upgrade your database' | |||
|
116 | 118 | |
|
117 | 119 | First, run the following command to see your current database version:: |
|
118 | 120 | |
|
119 |
alembic -c |
|
|
121 | alembic -c new.ini current | |
|
120 | 122 | |
|
121 | 123 | Typical output will be something like "9358dc3d6828 (head)", which is |
|
122 | 124 | the current Alembic database "revision ID". Write down the entire output |
@@ -129,12 +131,12 b' found or has no ``[alembic]`` section, s' | |||
|
129 | 131 | Next, if you are performing an *upgrade*: Run the following command to |
|
130 | 132 | upgrade your database to the current Kallithea version:: |
|
131 | 133 | |
|
132 |
alembic -c |
|
|
134 | alembic -c new.ini upgrade head | |
|
133 | 135 | |
|
134 | 136 | If you are performing a *downgrade*: Run the following command to |
|
135 | 137 | downgrade your database to the given version:: |
|
136 | 138 | |
|
137 |
alembic -c |
|
|
139 | alembic -c new.ini downgrade 0.4 | |
|
138 | 140 | |
|
139 | 141 | Alembic will show the necessary migrations (if any) as it executes them. |
|
140 | 142 | If no "ERROR" is displayed, the command was successful. |
@@ -151,6 +153,13 b' Without this, Alembic will fail with an ' | |||
|
151 | 153 | |
|
152 | 154 | FAILED: No config file 'my.ini' found, or file has no '[alembic]' section |
|
153 | 155 | |
|
156 | .. note:: | |
|
157 | If you followed this upgrade guide correctly, you will have created a | |
|
158 | new configuration file in section :ref:`Upgrading your configuration | |
|
159 | <upgrade_config>`. When calling Alembic, make | |
|
160 | sure to use this new config file. In this case, you should not get any | |
|
161 | errors and the below manual steps should not be needed. | |
|
162 | ||
|
154 | 163 | If Alembic complains specifically about a missing ``alembic.ini``, it is |
|
155 | 164 | likely because you did not specify a config file using the ``-c`` option. |
|
156 | 165 | On the other hand, if the mentioned config file actually exists, you |
General Comments 0
You need to be logged in to leave comments.
Login now