refactor: update database setup and remove skills migration API

- Changed migration commands in DATABASE_SETUP.md to use `pnpm run sync-skills` and `pnpm run sync-teams`.
- Removed the skills migration API endpoint in route.ts, streamlining the migration process.
- Updated MIGRATION_UUID.md to reflect changes in migration steps and removed the old skills migration script.
- Added new sync scripts for skills and teams in package.json.
- Cleaned up init.sql by removing old teams data insertion and adjusted comments for clarity.
This commit is contained in:
Julien Froidefond
2025-08-21 15:21:36 +02:00
parent dad172157b
commit a4b680b092
11 changed files with 317 additions and 205 deletions

View File

@@ -140,8 +140,11 @@ docker compose up -d adminer
Une fois PostgreSQL démarré, tu peux migrer les données :
```bash
# Migrer les skills depuis JSON vers PostgreSQL
curl -X POST http://localhost:3000/api/skills/migrate
# Synchroniser les skills depuis JSON vers PostgreSQL
pnpm run sync-skills
# Synchroniser les teams depuis JSON vers PostgreSQL
pnpm run sync-teams
# Vérifier dans Adminer : http://localhost:8080
# Ou en ligne de commande :