Skip to content

Commit 0575181

Browse files
authored
Merge pull request #739 from TomHAnderson/docs/schema_assets_filter
@ittmann fix from #731
2 parents 97d2321 + c32e0f9 commit 0575181

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/en/configuration.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ module.
293293
How to Exclude Tables from a Schema Diff
294294
----------------------------------------
295295

296-
The "schema_assets_filter" option can be used to exclude certain tables from being created or deleted in a schema update:
296+
The "schema_assets_filter" option can be used to exclude certain tables from being deleted in a schema update.
297+
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 and `true` for any other tables.
297298

298299
.. code:: php
299300
@@ -302,7 +303,7 @@ The "schema_assets_filter" option can be used to exclude certain tables from bei
302303
'configuration' => [
303304
'orm_default' => [
304305
'schema_assets_filter' => fn (string $tableName): bool => (
305-
in_array($tableName, ['migrations', 'doNotRemoveThisTable']);
306+
! in_array($tableName, ['doNotRemoveThisTable', 'alsoDoNotRemoveThisTable'])
306307
),
307308
],
308309
],

0 commit comments

Comments
 (0)