Correctly attribute migration steps to 6.0 series instead of 6.2

(grafted from e5ea722fc9d3ea019aeab548a59d87640514d94f)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2025-01-03 14:40:08 +01:00
parent 78e0e55e1c
commit 5c6da6daa6
+30
View File
@@ -11,6 +11,36 @@ a database from another series.
.. note:: .. note::
If you skip a series, all actions between them must be performed. If you skip a series, all actions between them must be performed.
6.0
---
Before
~~~~~~
* Add access on field:
.. code-block:: SQL
ALTER TABLE IF EXISTS "ir_model_field" ADD COLUMN IF NOT EXISTS "access" BOOLEAN;
* If ``account_invoice`` module is activated, fix ``currency``,
``invoice_type`` and ``party`` on ``account.invoice.line``:
.. code-block:: SQL
UPDATE "account_invoice_line" SET "currency" = (SELECT "currency" FROM "account_invoice" WHERE "id" = "account_invoice_line"."invoice") WHERE "invoice" IS NOT NULL;
UPDATE "account_invoice_line" SET "invoice_type" = (SELECT "type" FROM "account_invoice" WHERE "id" = "account_invoice_line"."invoice") WHERE "invoice_type" IS NOT NULL AND "invoice" IS NOT NULL;
UPDATE "account_invoice_line" SET "party" = (SELECT "party" FROM "account_invoice" WHERE "id" = "account_invoice_line"."invoice") WHERE "party" IS NOT NULL AND "invoice" IS NOT NULL;
After
~~~~~
* Remove code column on ``ir.sequence.type``:
.. code-block:: SQL
ALTER TABLE IF EXISTS "ir_sequence_type" DROP COLUMN IF EXISTS "code";
5.6 5.6
--- ---