-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from devsoc-unsw/feature/keywordManagement
Add keyword create feature
- Loading branch information
Showing
7 changed files
with
309 additions
and
207 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- DropIndex | ||
DROP INDEX "Keyword_text_key"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#This script only works for integration testing. | ||
DIR="$(cd "$(dirname "$0")" && pwd)" | ||
export $(grep -v '^#' .env.test | xargs) | ||
docker-compose up -d | ||
docker rm -f redis-stack-test 2>/dev/null || true && docker run -d --name redis-stack-test -p 6380:6379 -p 8002:8001 redis/redis-stack:latest | ||
echo '🟡 - Waiting for database to be ready...' | ||
docker rm -f postgres-test-pyramids 2>/dev/null && docker run --name postgres-test-pyramids -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 postgres | ||
docker rm -f redis-stack-test-pyramids 2>/dev/null || true && docker run -d --name redis-stack-test-pyramids -p 6380:6379 -p 8002:8001 redis/redis-stack:latest | ||
|
||
echo "node_env is ${NODE_ENV}" | ||
echo "Using database: ${DATABASE_URL}" | ||
echo "And direct URL: ${DIRECT_URL}" | ||
echo "redis port is ${REDIS_PORT}" | ||
$DIR/wait-for-it.sh "${DATABASE_URL}" -- echo '🟢 - Database is ready!' | ||
npx prisma migrate dev --name init | ||
|
||
pnpm prisma migrate deploy | ||
|
||
if [ "$#" -eq "0" ] | ||
then | ||
vitest -c ./vitest.config.integration.ts | ||
else | ||
vitest -c ./vitest.config.integration.ts --ui | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.