From 58ed88e604b9268c41752bd45adccbb82c1efbd8 Mon Sep 17 00:00:00 2001 From: Polaris Date: Sat, 17 Aug 2024 16:41:38 -0400 Subject: [PATCH] updated readme --- README.md | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9f822b8..9c4c479 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,27 @@ - - Needs BunJS and a Mysql DB - -1 - create a mysql database called lachesis +1 - create a mysql database called daphnis make a .env in the root directory containing the following (be sure to use your own data) -DATABASE_URL="mysql://root:password@localhost:3306/lachesis" +DATABASE_URL="mysql://root:password@localhost:3306/daphnis" DATABASE_AIME_URL = "mysql://root:password@localhost:3306/aime" --- + 2 - delete the migrations and generated folder(s) inside schemas/artemis and schemas/daphnis ----- +--- + 3 - run the below $ `bun db:init` What it does: -It will create a empty data base for lachesis and pull your existing artemis one into its own schema via introspection. +It will create a empty data base for daphnis and pull your existing artemis one into its own schema via introspection. -`"db:init": "npx prisma migrate dev --name init --schema prisma/schemas lachesis/schema.prisma; npx prisma db pull --schema prisma/schemas/artemis/schema.prisma"` +`"db:init": "npx prisma migrate dev --name init --schema prisma/schemas daphnis/schema.prisma; npx prisma db pull --schema prisma/schemas/artemis/schema.prisma"` --- @@ -34,7 +33,7 @@ What it does: generates the schema output -`"lachesis:generate": "prisma generate --schema=./prisma/schemas/lachesis/schema.prisma"` +`"daphnis:generate": "prisma generate --schema=./prisma/schemas/daphnis/schema.prisma"` --- @@ -50,7 +49,7 @@ What it does: --- -6 - start lachesis +6 - start daphnis $ `bun run dev` @@ -58,8 +57,8 @@ What it does: `"dev": "next dev",` -You can look at the package.json to figure out how to migrate lachesis if you have the desire to make changes. +You can look at the package.json to figure out how to migrate daphnis if you have the desire to make changes. -If you download the files as is you should just need to update the env and do a migrate to your db for lachesis, check your database after to make sure all the schemas are there. +If you download the files as is you should just need to update the env and do a migrate to your db for daphnis, check your database after to make sure all the schemas are there. -`"lachesis:migrate": "prisma migrate dev --schema=./prisma/schemas/lachesis/schema.prisma",` +`"daphnis:migrate": "prisma migrate dev --schema=./prisma/schemas/daphnis/schema.prisma",`