diff --git a/Populate_DB b/Populate_DB new file mode 100644 index 0000000..ecd853c --- /dev/null +++ b/Populate_DB @@ -0,0 +1,12 @@ +3. Initialisation de la base (migrations Prisma) + +Cloner le repo AFFiNE : + +git clone https://github.com/toeverything/AFFiNE.git ~/AFFiNE + +Puis lancer les migrations : +docker run -it --rm --network=affine_default +-e DATABASE_URL="postgres://affine_usr:R8v%232kP9sTq4%21Lm@affine_db:5432/affine?sslmode=disable" +-v ~/AFFiNE:/work +-w /work/packages/backend/server node:20-alpine sh -c "npm install -g prisma@6 && prisma migrate +deploy --schema=./schema.prisma" \ No newline at end of file