-
Notifications
You must be signed in to change notification settings - Fork 2
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 #10 from ghivert/feat/try-new-type-search
New type search
- Loading branch information
Showing
10 changed files
with
333 additions
and
48 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
apps/backend/db/migrations/20240801164720_create_search_analytics_analytics_table.sql
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,16 @@ | ||
-- migrate:up | ||
create table search_analytics ( | ||
query text primary key, | ||
occurences int not null default 0, | ||
created_at timestamptz default current_timestamp not null, | ||
updated_at timestamptz default current_timestamp not null | ||
); | ||
|
||
create trigger search_analytics_moddatetime | ||
before update on search_analytics | ||
for each row | ||
execute procedure moddatetime (updated_at); | ||
|
||
-- migrate:down | ||
drop trigger search_analytics_moddatetime on search_analytics; | ||
drop table search_analytics; |
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
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.