Skip to content

Commit

Permalink
changed order of migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinJ committed Aug 20, 2023
1 parent 0ee75c9 commit e4ee709
Showing 1 changed file with 42 additions and 37 deletions.
79 changes: 42 additions & 37 deletions doc/src/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ in the new signatures. It works mainly for driving cases, therefore the ``drivin
parameter changed from optional to compulsory, and its valid values differ for
directed and undirected graphs.

:doc:`pgr_withPointsKSP` signature have changed, with the addition of new columns
in the new signature. It works mainly for driving cases, therefore the ``driving side``
parameter changed from optional to compulsory, and its valid values differ for
directed and undirected graphs.

.. warning::
All deprecated functions will be removed on next mayor version 4.0.0

Expand All @@ -43,43 +48,6 @@ Migration of functions that add new columns
.. contents:: Contents
:local:

Migration of ``pgr_withPointsKSP``
-------------------------------------------------------------------------------

Starting from `v3.6.0 <https://docs.pgrouting.org/3.6/en/migration.html>`__

Signatures to be migrated:

* ``pgr_withPointsKSP`` (`One to One`)

:Before Migration:

* Output columns were |old-pid-result|

* Depending on the overload used, the columns ``start_vid`` and ``end_vid``
might be missing:

* ``pgr_withPointsKSP`` (`One to One`) does not have ``start_vid`` and ``end_vid``.

:Migration:

* Be aware of the existance of the additional columns.

* In ``pgr_withPointsKSP`` (`One to One`)

* ``start_vid`` contains the **start vid** parameter value.
* ``end_vid`` contains the **end vid** parameter value.

.. literalinclude:: migration.queries
:start-after: --withPointsKSP1
:end-before: --withPointsKSP2

* If needed filter out the added columns, for example:

.. literalinclude:: migration.queries
:start-after: --withPointsKSP2
:end-before: --withPointsKSP3

Migration of ``pgr_aStar``
-------------------------------------------------------------------------------

Expand Down Expand Up @@ -1062,6 +1030,43 @@ values of the function been migrated then:
* ``id2`` is the node
* ``id3`` is the edge

Migration of ``pgr_withPointsKSP``
-------------------------------------------------------------------------------

Starting from `v3.6.0 <https://docs.pgrouting.org/3.6/en/migration.html>`__

Signatures to be migrated:

* ``pgr_withPointsKSP`` (`One to One`)

:Before Migration:

* Output columns were |old-pid-result|

* Depending on the overload used, the columns ``start_vid`` and ``end_vid``
might be missing:

* ``pgr_withPointsKSP`` (`One to One`) does not have ``start_vid`` and ``end_vid``.

:Migration:

* Be aware of the existance of the additional columns.

* In ``pgr_withPointsKSP`` (`One to One`)

* ``start_vid`` contains the **start vid** parameter value.
* ``end_vid`` contains the **end vid** parameter value.

.. literalinclude:: migration.queries
:start-after: --withPointsKSP1
:end-before: --withPointsKSP2

* If needed filter out the added columns, for example:

.. literalinclude:: migration.queries
:start-after: --withPointsKSP2
:end-before: --withPointsKSP3

See Also
-------------------------------------------------------------------------------

Expand Down

0 comments on commit e4ee709

Please sign in to comment.