Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abraryaser02 committed May 10, 2024
1 parent 4e2ecf2 commit 97d8e00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ jobs:
PYTHONPATH: services/backend
run: |
cd services/backend
export APP_SETTINGS=project.config.TestingConfig
export PYTHONPATH=$(pwd)
export DATABASE_TEST_URL=postgresql://postgres:postgres@localhost:5435/backend_test
export DATABASE_URL=postgresql://postgres:postgres@localhost:5435/backend_dev
pytest
6 changes: 3 additions & 3 deletions services/postgres/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ CREATE TABLE fts_word (
COPY fts_word(word) FROM '/docker-entrypoint-initdb.d/words_alpha.txt' WITH (FORMAT text);

-- Indexes for faster search
CREATE INDEX idx_login ON users USING btree (email, password);
CREATE INDEX idx_users_email ON users USING btree (email);
CREATE INDEX idx_login ON users (email, password);
CREATE INDEX idx_users_email ON users (id_users, email);
CREATE INDEX idx_events_start_time ON events USING btree (start_time);
CREATE INDEX idx_events_name ON events USING rum (name);
CREATE INDEX idx_events_description ON events USING rum (description);
CREATE INDEX idx_events_start_time ON events USING btree (start_time);

-- Full-text search index
CREATE INDEX idx_events_fti ON events USING rum (tsv);
Expand Down

0 comments on commit 97d8e00

Please sign in to comment.