Skip to content

Commit d0efd5c

Browse files
Merge pull request #6282 from greg0ire/formatting
Use double backticks
2 parents 63f294e + 96e6ff1 commit d0efd5c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/en/how-to/postgresql-identity-migration.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Migration to identity columns on PostgreSQL
22
===========================================
33

4-
As of version 4, the DBAL uses identity columns to implement the `autoincrement`
5-
behavior on PostgreSQL instead of `SERIAL*` column types.
4+
As of version 4, the DBAL uses identity columns to implement the ``autoincrement``
5+
behavior on PostgreSQL instead of ``SERIAL*`` column types.
66

7-
If you have a database with `autoincrement` columns created using DBAL 3 or earlier,
7+
If you have a database with ``autoincrement`` columns created using DBAL 3 or earlier,
88
you will need to perform the following schema migration before being able to continue managing
99
the schema with the DBAL:
1010

11-
1. Identify all `autoincrement` columns and their tables.
12-
2. Create the `upgrade_serial_to_identity()` function in the database as described in
11+
1. Identify all ``autoincrement`` columns and their tables.
12+
2. Create the ``upgrade_serial_to_identity()`` function in the database as described in
1313
`PostgreSQL 10 identity columns explained <https://www.2ndquadrant.com/en/blog/postgresql-10-identity-columns/>`_:
1414

1515
.. code-block:: sql
@@ -60,8 +60,8 @@ the schema with the DBAL:
6060
END;
6161
$$;
6262
63-
3. For each column and their table, run `upgrade_serial_to_identity(<table>, <column>)`.
63+
3. For each column and their table, run ``upgrade_serial_to_identity(<table>, <column>)``.
6464

6565
Without this migration, next time when DBAL 4 is used to manage the schema, it will perform a similar migration
6666
but instead of reusing the existing sequence, it will drop it and create a new one. As a result,
67-
all new sequence numbers will be generated from `1`, which is most likely undesired.
67+
all new sequence numbers will be generated from ``1``, which is most likely undesired.

0 commit comments

Comments
 (0)