File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ To initialise the database for the first time:
77772 . Start the database by running ` docker compose -f docker-compose.dev.yaml up -d ` .
78783 . Initialise the database:
7979 - Open a shell in the docker container by running ` docker compose -f docker-compose.dev.yaml exec database-dev bash ` .
80- - Connect to the database by running ` psql -U $POSTGRES_USER -d $POSTGRES_NAME ` .
80+ - Connect to the database by running ` psql -U $POSTGRES_USER -d $POSTGRES_DB ` .
8181 - Run the queries in ` INIT_DB ` in [ ` backend/src/db/queries.rs ` ] ( ./backend/src/db/queries.rs ) to initialise the database.
8282
8383To run the pre-initialised database:
@@ -90,7 +90,7 @@ For Production:
90902 . Start the database by running ` docker compose -f docker-compose.yaml up -d ` .
91913 . Initialise the database:
9292 - Open a shell in the docker container by running ` docker compose -f docker-compose.yaml exec iqps-backend bash ` .
93- - Connect to the database by running ` psql -U $POSTGRES_USER -d $POSTGRES_NAME ` .
93+ - Connect to the database by running ` psql -U $POSTGRES_USER -d $POSTGRES_DB ` .
9494 - Run the queries in ` INIT_DB ` in [ ` backend/src/db/queries.rs ` ] ( ./backend/src/db/queries.rs ) to initialise the database.
9595
9696### Authentication
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ CREATE TABLE IF NOT EXISTS iqps (
1919 from_library BOOLEAN DEFAULT FALSE,
2020 upload_timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
2121 approve_status BOOLEAN DEFAULT FALSE,
22+ approved_by TEXT DEFAULT '',
2223 is_deleted BOOLEAN DEFAULT FALSE,
2324 fts_course_details tsvector GENERATED ALWAYS AS (to_tsvector('english', course_code || ' ' || course_name)) stored
2425);
You can’t perform that action at this time.
0 commit comments