From a9b37a7fa3cbbc7d495a124db23a711ab51809ad Mon Sep 17 00:00:00 2001 From: Dick Ittmann Date: Mon, 6 Feb 2023 11:01:19 +0100 Subject: [PATCH] Update schema_assets_filter documentation --- docs/en/configuration.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/configuration.rst b/docs/en/configuration.rst index bc84d6b6..8e8c9f8a 100644 --- a/docs/en/configuration.rst +++ b/docs/en/configuration.rst @@ -293,7 +293,8 @@ module. How to Exclude Tables from a Schema Diff ---------------------------------------- -The "schema_assets_filter" option can be used to exclude certain tables from being created or deleted in a schema update: +The "schema_assets_filter" option can be used to exclude certain tables from being deleted in a schema update. +It should be set with a filter callback that will receive the table name and should return `false` for any tables that must be excluded. .. code:: php @@ -302,7 +303,7 @@ The "schema_assets_filter" option can be used to exclude certain tables from bei 'configuration' => [ 'orm_default' => [ 'schema_assets_filter' => fn (string $tableName): bool => ( - ! in_array($tableName, ['migrations', 'doNotRemoveThisTable']) + ! in_array($tableName, ['doNotRemoveThisTable', 'alsoDoNotRemoveThisTable']) ), ], ],