0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-04 02:11:44 -05:00
immich/server
..
apps
bin
libs
openapi-generator
.dockerignore
.eslintrc.js
.gitignore
.prettierignore
.prettierrc
Dockerfile
immich-openapi-specs.json
LICENSE
nest-cli.json
openapitools.json
package-lock.json
package.json
README.md
start-microservices.sh
start-server.sh
tsconfig.build.json
tsconfig.json

How to run migration

  1. Attached to the container shell
  2. Run npm run typeorm -- migration:generate ./libs/database/src/<migration-name> -d libs/database/src/config/database.config.ts
  3. Check if the migration file makes sense
  4. Move the migration file to folder server/libs/database/src/migrations in your code editor.