Skip to content

Commit

Permalink
#35 Move Prisma to Odyssey base
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Sep 23, 2023
1 parent 015682c commit 53bc32f
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 154 deletions.
7 changes: 2 additions & 5 deletions scylla-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ RUN git init
RUN git submodule add -f https://github.com/Northeastern-Electric-Racing/Odyssey-Base.git ./src/odyssey-base && \
git submodule update --init --recursive

RUN npx [email protected] generate

RUN npx [email protected] migrate deploy

RUN npm i --save-dev @types/ws
RUN npm run prisma:generate && \
npm run prisma:migrate

RUN npm run build

Expand Down
3 changes: 1 addition & 2 deletions scylla-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@
"ws": "8.14.1"
},
"prisma": {
"schema": "./src/prisma/schema.prisma"
"schema": "./src/odyssey-base/src/prisma/schema.prisma"
},
"devDependencies": {
"@types/jest": "^29.5.4",
"@types/ws": "8.5.5",
"prisma": "^5.2.0"
}
}

This file was deleted.

3 changes: 0 additions & 3 deletions scylla-server/src/prisma/migrations/migration_lock.toml

This file was deleted.

4 changes: 0 additions & 4 deletions scylla-server/src/prisma/prisma-client.ts

This file was deleted.

62 changes: 0 additions & 62 deletions scylla-server/src/prisma/schema.prisma

This file was deleted.

2 changes: 1 addition & 1 deletion scylla-server/src/services/dataTypes.services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import prisma from '../prisma/prisma-client';
import prisma from '../odyssey-base/src/prisma/prisma-client';
import { ResponseFunction } from '../utils/message-maps.utils';

/**
Expand Down
2 changes: 1 addition & 1 deletion scylla-server/src/services/driver.services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import prisma from '../prisma/prisma-client';
import prisma from '../odyssey-base/src/prisma/prisma-client';
import { ResponseFunction } from '../utils/message-maps.utils';

/**
Expand Down
2 changes: 1 addition & 1 deletion scylla-server/src/services/systems.services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import prisma from '../prisma/prisma-client';
import prisma from '../odyssey-base/src/prisma/prisma-client';
import { ResponseFunction } from '../utils/message-maps.utils';

/**
Expand Down

0 comments on commit 53bc32f

Please sign in to comment.