Skip to content

Commit

Permalink
go
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Jan 23, 2025
1 parent fd42141 commit 64cb1c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ checkDbConnection();
setupCronJobs();

if (process.env.NODE_ENV === "production") {
startMaterializedViewRefreshJob();
createIndexes();
startMaterializedViewRefreshJob();
}
initSentry();

Expand Down
12 changes: 6 additions & 6 deletions packages/db/0059.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
insert into _db_migration_index (name, operation, statement, status) values
('run_input_idx', 'drop', 'drop index if exists run_input_idx', 'done'),
('run_output_idx', 'drop', 'drop index if exists run_output_idx', 'done'),
('run_error_idx', 'drop', 'drop index if exists run_error_idx', 'done'),
('run_project_id_input_idx', 'create', 'create index if not exists run_project_id_input_idx on run using gin (project_id, ((input)::text) gin_trgm_ops)', 'done'),
('run_project_id_output_idx', 'create', 'create index if not exists run_project_id_output_idx on run using gin (project_id, ((output)::text) gin_trgm_ops)', 'done');
insert into _db_migration_index (name, operation, statement) values
('run_input_idx', 'drop', 'drop index concurrently if exists run_input_idx'),
('run_output_idx', 'drop', 'drop index concurrently if exists run_output_idx'),
('run_error_idx', 'drop', 'drop index concurrently if exists run_error_idx'),
('run_project_id_input_idx', 'create', 'create index concurrently if not exists run_project_id_input_idx on run using gin (project_id, ((input)::text) gin_trgm_ops)'),
('run_project_id_output_idx', 'create', 'create index concurrently if not exists run_project_id_output_idx on run using gin (project_id, ((output)::text) gin_trgm_ops)');

0 comments on commit 64cb1c3

Please sign in to comment.