mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
640 B
640 B
Database Migrations
After making any changes in the server/src/infra/database/entities, a database migration need to run in order to register the changes in the database. Follow the steps below to create a new migration.
- Run the command
npm run typeorm:migrations:generate ./src/infra/<migration-name>
- Check if the migration file makes sense.
- Move the migration file to folder
./src/infra/database/migrationsin your code editor.
The server will automatically detect *.ts file changes and restart. Part of the server start-up process includes running any new migrations, so it will be applied immediately.