-
Notifications
You must be signed in to change notification settings - Fork 82
Clarified migration references #2988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.6
Are you sure you want to change the base?
Conversation
Preview of modified filesPreview of modified Markdown: |
| Reference files are located in a separate directory `src/Migrations/Ibexa/references` (for more information, see [previewing reference](#preview-configuration) `ibexa_migrations.migration_directory` and `ibexa_migrations.references_files_subdir` options). | ||
|
|
||
| Reference files are **NOT** loaded by default. A separate step (type: "reference", mode: "load", with filename as "value") is required. | ||
| Similarly, saving a reference file is done using type: "reference", mode: "save" step, with filename. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens to the file if it already exists? Overridden or appended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overriden (see https://github.com/ibexa/migrations/blob/main/src/lib/Dumper/MigrationDumper.php#L50 and https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Local/LocalFilesystemAdapter.php#L128C69-L128C79 without APPEND flag for an example implementation).
I'll add a note about this.
Co-authored-by: Thorsten Reiter <34274688+reithor@users.noreply.github.com>
Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
916e2f1 to
e52ed91
Compare
As suggested on Slack (conversation from 30.10.2025)