Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ cd T18-Project-2
npm ci --prefix backend
npm ci --prefix frontend
cp backend/.env.example backend/.env # then set your database password
npm run db:schema --prefix backend
npm run db:migrate --prefix backend
npm run db:seed:test --prefix backend
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- Up Migration
-- Database schema for the X-Wines catalog. Safe to run more than once.

-- pg_trgm makes ILIKE '%text%' searches fast, also with many rows.
Expand Down Expand Up @@ -41,4 +42,7 @@ CREATE TABLE IF NOT EXISTS community_rating (
rated_at timestamp NOT NULL
);

CREATE INDEX IF NOT EXISTS community_rating_wine ON community_rating (wine_id);
CREATE INDEX IF NOT EXISTS community_rating_wine ON community_rating (wine_id);
-- Down Migration
DROP TABLE IF EXISTS community_rating;
DROP TABLE IF EXISTS wine;
Loading