| |
@@ -1,6 +1,44 @@
|
| |
Upgrading Pagure
|
| |
================
|
| |
|
| |
+ From 5.1 to 5.1.4
|
| |
+ -----------------
|
| |
+
|
| |
+ In the development of 5.1.4 it was found out that the alembic migration
|
| |
+ ``ba538b2648b7`` that creates the ``hook_mirror`` table was incomplete.
|
| |
+ If you created that table via alembic, you will likely want to re-run it. Beware
|
| |
+ that applying the following commands will destroy any data you have in this
|
| |
+ table.
|
| |
+
|
| |
+ * Mark the database to this migration::
|
| |
+
|
| |
+ alembic stamp ba538b2648b7
|
| |
+
|
| |
+ * Remove the ``hook_mirror`` table so it can be re-generated::
|
| |
+
|
| |
+ alembic downgrade -1
|
| |
+
|
| |
+ * Re-run that single migration::
|
| |
+
|
| |
+ alembic upgrade +1
|
| |
+
|
| |
+ * Marking the database to the last current migration (as of 5.1.4)::
|
| |
+
|
| |
+ alembic stamp f16ab75e4d32
|
| |
+
|
| |
+ Again, any project that tried to setup the mirroring feature in pagure will need
|
| |
+ to be reconfigured.
|
| |
+
|
| |
+ Another option (that will prevent loosing any data in this table) is to
|
| |
+ adjust the table manually using these SQL queries:
|
| |
+
|
| |
+ ::
|
| |
+
|
| |
+ ALTER TABLE hook_mirror ADD COLUMN 'public_key' TEXT;
|
| |
+ ALTER TABLE hook_mirror ADD COLUMN 'target' TEXT;
|
| |
+ ALTER TABLE hook_mirror ADD COLUMN 'last_log' TEXT;
|
| |
+
|
| |
+
|
| |
From 5.x to 5.1
|
| |
---------------
|
| |
|
| |