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:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user