[root@es-01 umami]# docker exec -it umami_umami_1 sh /app $ npx @umami/migrate-v1-v2 --registry=https://registry.npmmirror.com Need to install the following packages: @umami/[email protected] Ok to proceed? (y) y Running v0.15.0 ✓ DATABASE_URL is defined. ✓ Database connection successful. Preparing v1 tables for migration ✓ Dropped v1 database keys. ✓ Dropped v1 database indexes. ✓ Renamed v1 database tables. ✓ Database v1 tables ready for migration. Database v2 tables not found. Adding v2 tables... ✓ Ran sql file /db/postgresql/migrations/01_init/migration.sql. ┌─────────────────────────────────────────────────────────┐ │ Update available 4.9.0 -> 4.13.0 │ │ Run the following to update │ │ npm i --save-dev prisma@latest │ │ npm i @prisma/client@latest │ └─────────────────────────────────────────────────────────┘ Prisma schema loaded from prisma/schema.prisma Datasource "db": PostgreSQL database "umami", schema "public" at "db:5432" Migration 01_init marked as applied.
✓ Database is ready for migration. ✓ Starting v2 data migration. Please do no cancel this process, it may take a while. ✓ Ran sql file /db/postgresql/data-migration-v2.sql. ✓ Data migration from V1 to V2 tables completed. ✔ Do you want to delete V1 database tables? (Y/N) … y ✓ Dropped v1 database tables. ✓ Migration successfully completed. npm notice npm notice New major version of npm available! 8.19.3 -> 9.6.6 npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.6 npm notice Run npm install -g [email protected] to update! npm notice