You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we update a model that lives in core/metadata schema we need to run the following command to generate the relevant migrations:
npx nx run twenty-server:typeorm --migration:generate src/database/typeorm/metadata/migrations/nameOfYourMigration -d src/database/typeorm/metadata/metadata.datasource.ts # (orcore data source)
Sometimes people will create migrations manually or just forget to run this command, resulting in migrations not being created at the right moment and usually getting picked up in a sub-sequent unrelated PR.
In order to avoid this, we would like to add a step in the server CI that will make sure the migration generation commands do not generate any file.
The text was updated successfully, but these errors were encountered:
When we update a model that lives in core/metadata schema we need to run the following command to generate the relevant migrations:
Sometimes people will create migrations manually or just forget to run this command, resulting in migrations not being created at the right moment and usually getting picked up in a sub-sequent unrelated PR.
In order to avoid this, we would like to add a step in the server CI that will make sure the migration generation commands do not generate any file.
The text was updated successfully, but these errors were encountered: