Morph relation : migration builder (#13173)

This PR will create the migration to be run for the morph relations

- We created a dedicated util to generate the column name and refactored
a little the code in order to have less dependencies and a clearer devX
(updated the snapshot that changed because of this)
- Moved the `createMigrationActions` to its own util as well
- Created the `MorphRelationColumnActionFactory` based on the relation
one

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Guillim
2025-07-17 11:39:45 +02:00
committed by GitHub
parent 0a8a6b652a
commit 530a7dea86
10 changed files with 210 additions and 83 deletions

View File

@ -2,9 +2,10 @@ module.exports = {
plugins: ['@stylistic'],
extends: ['../../.eslintrc.global.cjs'],
ignorePatterns: [
'src/engine/workspace-manager/demo-objects-prefill-data/**',
'src/engine/seeder/data-seeds/**',
'src/engine/seeder/metadata-seeds/**',
'src/engine/workspace-manager/dev-seeder/data/constants/**',
'src/engine/workspace-manager/dev-seeder/data/seeds/**',
'src/utils/email-providers.ts',
'src/engine/core-modules/i18n/locales/generated/**',
'src/engine/core-modules/serverless/drivers/constants/base-typescript-project/src/index.ts',
],
overrides: [