From eaaadc43362fa957b98d38ff17f980af24eca12a Mon Sep 17 00:00:00 2001 From: Ines Almeida Date: Tue, 8 Oct 2024 16:44:21 +0200 Subject: [PATCH] Add details about applying a specific schema change locally --- how-to/apply-schema-changes.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/how-to/apply-schema-changes.rst b/how-to/apply-schema-changes.rst index 98542e0..b10a7f8 100644 --- a/how-to/apply-schema-changes.rst +++ b/how-to/apply-schema-changes.rst @@ -40,3 +40,13 @@ please run the following command: .. code-block:: bash make -C database/schema test + +If you only want to apply one specific patch for testing purposes, you can +run the following command: + +.. code-block: bash + + psql launchpad_dev -1 -f .sql + +This comment will apply file (``-f``) ``.sql`` as a single +transaction (``-1``) to the database named ``launchpad_dev``.