#4122 Brough in doc from 5.1.4 and adjust it as the fix can also be ran manually
Merged 7 years ago by pingou. Opened 7 years ago by pingou.

file modified
+38
@@ -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

  ---------------

  

file modified
+10
@@ -3,6 +3,16 @@ 

  

  This document records all notable changes to `Pagure <https://pagure.io>`_.

  

+ 5.1.4 (2018-10-15)

+ ------------------

+ 

+ - Fix the alembic migration creating the hook_mirror table

+ - Close the DB session in one place for all hooks

+ - Add more logging to the pagure_logcom service

+ - Configure SMTP info for git_multimail (Patrick Uiterwijk)

+ - Use the PR UID previously read from environment (Patrick Uiterwijk)

+ 

+ 

  5.1.3 (2018-10-11)

  ------------------