-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9384b4
commit 2b13919
Showing
117 changed files
with
3,445 additions
and
1,724 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
v5.8.1579 | ||
v5.9.45 |
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
17 changes: 17 additions & 0 deletions
17
migrations/codeinsights/1725708046_migrate_unique_indexes_to_respect_tenants/down.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,17 @@ | ||
CREATE UNIQUE INDEX tmp_unique_index ON insight_view (unique_id); | ||
DROP INDEX IF EXISTS insight_view_unique_id_unique_idx; | ||
ALTER INDEX tmp_unique_index RENAME TO insight_view_unique_id_unique_idx; | ||
CREATE UNIQUE INDEX IF NOT EXISTS insight_view_unique_id_unique_idx_new ON insight_view (unique_id, tenant_id); | ||
COMMIT AND CHAIN; | ||
|
||
CREATE UNIQUE INDEX tmp_unique_index ON metadata (metadata); | ||
DROP INDEX IF EXISTS metadata_metadata_unique_idx; | ||
ALTER INDEX tmp_unique_index RENAME TO metadata_metadata_unique_idx; | ||
CREATE UNIQUE INDEX IF NOT EXISTS metadata_metadata_unique_idx_new ON metadata (metadata, tenant_id); | ||
COMMIT AND CHAIN; | ||
|
||
CREATE UNIQUE INDEX tmp_unique_index ON repo_names (name); | ||
DROP INDEX IF EXISTS repo_names_name_unique_idx; | ||
ALTER INDEX tmp_unique_index RENAME TO repo_names_name_unique_idx; | ||
CREATE UNIQUE INDEX IF NOT EXISTS repo_names_name_unique_idx_new ON repo_names (name, tenant_id); | ||
COMMIT AND CHAIN; |
3 changes: 3 additions & 0 deletions
3
migrations/codeinsights/1725708046_migrate_unique_indexes_to_respect_tenants/metadata.yaml
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,3 @@ | ||
name: Migrate unique indexes to respect tenants | ||
parents: [1728937726] | ||
bestEffortTerminateBlockingTransactions: true |
31 changes: 31 additions & 0 deletions
31
migrations/codeinsights/1725708046_migrate_unique_indexes_to_respect_tenants/up.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,31 @@ | ||
DO | ||
$$ | ||
BEGIN | ||
IF to_regclass('insight_view_unique_id_unique_idx_new') IS NOT NULL THEN | ||
DROP INDEX IF EXISTS insight_view_unique_id_unique_idx; | ||
ALTER INDEX insight_view_unique_id_unique_idx_new RENAME TO insight_view_unique_id_unique_idx; | ||
END IF; | ||
END | ||
$$; | ||
COMMIT AND CHAIN; | ||
|
||
DO | ||
$$ | ||
BEGIN | ||
IF to_regclass('metadata_metadata_unique_idx_new') IS NOT NULL THEN | ||
DROP INDEX IF EXISTS metadata_metadata_unique_idx; | ||
ALTER INDEX metadata_metadata_unique_idx_new RENAME TO metadata_metadata_unique_idx; | ||
END IF; | ||
END | ||
$$; | ||
COMMIT AND CHAIN; | ||
|
||
DO | ||
$$ | ||
BEGIN | ||
IF to_regclass('repo_names_name_unique_idx_new') IS NOT NULL THEN | ||
DROP INDEX IF EXISTS repo_names_name_unique_idx; | ||
ALTER INDEX repo_names_name_unique_idx_new RENAME TO repo_names_name_unique_idx; | ||
END IF; | ||
END | ||
$$; |
30 changes: 30 additions & 0 deletions
30
migrations/codeinsights/1727399817_make_tenant_id_columns_nonnullable/down.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,30 @@ | ||
CREATE OR REPLACE FUNCTION migrate_tenant_id_non_null_codeinsights_down(table_name text) | ||
RETURNS void AS $$ | ||
BEGIN | ||
EXECUTE format('ALTER TABLE %I DROP COLUMN IF EXISTS tenant_id;', table_name); | ||
EXECUTE format('ALTER TABLE %I ADD COLUMN tenant_id integer DEFAULT 1 REFERENCES tenants(id) ON UPDATE CASCADE ON DELETE CASCADE;', table_name); | ||
END; | ||
$$ LANGUAGE plpgsql; | ||
|
||
SELECT migrate_tenant_id_non_null_codeinsights_down('archived_insight_series_recording_times'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('dashboard'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('dashboard_grants'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('dashboard_insight_view'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insight_series'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insight_series_backfill'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insight_series_incomplete_points'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insight_view'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insight_view_grants'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insight_view_series'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insights_background_jobs'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insights_data_retention_jobs'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('insight_series_recording_times'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('metadata'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('repo_iterator'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('repo_iterator_errors'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('repo_names'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('archived_series_points'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('series_points'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights_down('series_points_snapshots'); COMMIT AND CHAIN; | ||
|
||
DROP FUNCTION migrate_tenant_id_non_null_codeinsights_down(text); |
3 changes: 3 additions & 0 deletions
3
migrations/codeinsights/1727399817_make_tenant_id_columns_nonnullable/metadata.yaml
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,3 @@ | ||
name: Make tenant_id columns non-nullable | ||
parents: [1723647665, 1727875004] | ||
bestEffortTerminateBlockingTransactions: true |
31 changes: 31 additions & 0 deletions
31
migrations/codeinsights/1727399817_make_tenant_id_columns_nonnullable/up.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,31 @@ | ||
CREATE OR REPLACE FUNCTION migrate_tenant_id_non_null_codeinsights(table_name text) | ||
RETURNS void AS $$ | ||
BEGIN | ||
EXECUTE format('ALTER TABLE %I DROP COLUMN IF EXISTS tenant_id;', table_name); | ||
EXECUTE format('ALTER TABLE %I ADD COLUMN tenant_id integer NOT NULL DEFAULT 1;', table_name); | ||
EXECUTE format('ALTER TABLE %I ALTER COLUMN tenant_id SET DEFAULT (current_setting(''app.current_tenant''::text))::integer;', table_name); | ||
END; | ||
$$ LANGUAGE plpgsql; | ||
|
||
SELECT migrate_tenant_id_non_null_codeinsights('archived_insight_series_recording_times'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('dashboard'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('dashboard_grants'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('dashboard_insight_view'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insight_series'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insight_series_backfill'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insight_series_incomplete_points'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insight_view'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insight_view_grants'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insight_view_series'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insights_background_jobs'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insights_data_retention_jobs'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('insight_series_recording_times'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('metadata'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('repo_iterator'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('repo_iterator_errors'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('repo_names'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('archived_series_points'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('series_points'); COMMIT AND CHAIN; | ||
SELECT migrate_tenant_id_non_null_codeinsights('series_points_snapshots'); COMMIT AND CHAIN; | ||
|
||
DROP FUNCTION migrate_tenant_id_non_null_codeinsights(text); |
30 changes: 30 additions & 0 deletions
30
migrations/codeinsights/1727489239_enable_rls_for_regular_users/down.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,30 @@ | ||
CREATE OR REPLACE FUNCTION migrate_enable_rls_codeinsights_down(table_name text) | ||
RETURNS void AS $$ | ||
BEGIN | ||
EXECUTE format('ALTER TABLE %I DISABLE ROW LEVEL SECURITY;', table_name); | ||
EXECUTE format('DROP POLICY IF EXISTS %I ON %I;', table_name || '_isolation_policy', table_name); | ||
END; | ||
$$ LANGUAGE plpgsql; | ||
|
||
SELECT migrate_enable_rls_codeinsights_down('insights_data_retention_jobs'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('series_points_snapshots'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('insight_series_recording_times'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('insight_view'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('insight_view_grants'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('archived_insight_series_recording_times'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('archived_series_points'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('dashboard'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('dashboard_grants'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('dashboard_insight_view'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('insight_series'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('insight_series_backfill'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('insight_series_incomplete_points'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('insight_view_series'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('insights_background_jobs'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('metadata'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('repo_iterator'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('repo_iterator_errors'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('repo_names'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights_down('series_points'); COMMIT AND CHAIN; | ||
|
||
DROP FUNCTION migrate_enable_rls_codeinsights_down(text); |
3 changes: 3 additions & 0 deletions
3
migrations/codeinsights/1727489239_enable_rls_for_regular_users/metadata.yaml
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,3 @@ | ||
name: Enable RLS for regular users | ||
parents: [1727399817] | ||
bestEffortTerminateBlockingTransactions: true |
32 changes: 32 additions & 0 deletions
32
migrations/codeinsights/1727489239_enable_rls_for_regular_users/up.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,32 @@ | ||
CREATE OR REPLACE FUNCTION migrate_enable_rls_codeinsights(table_name text) | ||
RETURNS void AS $$ | ||
BEGIN | ||
-- Enable RLS for the table. | ||
EXECUTE format('ALTER TABLE %I ENABLE ROW LEVEL SECURITY;', table_name); | ||
EXECUTE format('DROP POLICY IF EXISTS %I ON %I;', table_name || '_isolation_policy', table_name); | ||
EXECUTE format('CREATE POLICY %I ON %I AS PERMISSIVE FOR ALL TO PUBLIC USING (tenant_id = current_setting(''app.current_tenant'')::integer);', table_name || '_isolation_policy', table_name); | ||
END; | ||
$$ LANGUAGE plpgsql; | ||
|
||
SELECT migrate_enable_rls_codeinsights('insights_data_retention_jobs'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('series_points_snapshots'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('insight_series_recording_times'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('insight_view'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('insight_view_grants'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('archived_insight_series_recording_times'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('archived_series_points'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('dashboard'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('dashboard_grants'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('dashboard_insight_view'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('insight_series'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('insight_series_backfill'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('insight_series_incomplete_points'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('insight_view_series'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('insights_background_jobs'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('metadata'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('repo_iterator'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('repo_iterator_errors'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('repo_names'); COMMIT AND CHAIN; | ||
SELECT migrate_enable_rls_codeinsights('series_points'); COMMIT AND CHAIN; | ||
|
||
DROP FUNCTION migrate_enable_rls_codeinsights(text); |
2 changes: 2 additions & 0 deletions
2
.../codeinsights/1727490285_extend_tenants_table_with_workspace_uid_and_displayname/down.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,2 @@ | ||
ALTER TABLE tenants DROP COLUMN IF EXISTS workspace_id; | ||
ALTER TABLE tenants DROP COLUMN IF EXISTS display_name; |
2 changes: 2 additions & 0 deletions
2
...insights/1727490285_extend_tenants_table_with_workspace_uid_and_displayname/metadata.yaml
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,2 @@ | ||
name: Extend tenants table with workspace uid and displayname | ||
parents: [1727875004] |
25 changes: 25 additions & 0 deletions
25
...ns/codeinsights/1727490285_extend_tenants_table_with_workspace_uid_and_displayname/up.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,25 @@ | ||
-- Delete all tenants except the default one, we're not in production yet so this is the | ||
-- simplest. | ||
DELETE FROM tenants where NOT id = 1; | ||
|
||
ALTER TABLE tenants ADD COLUMN IF NOT EXISTS workspace_id uuid; | ||
-- Canonical workspace id for the default tenant. | ||
UPDATE tenants SET workspace_id = '6a6b043c-ffed-42ec-b1f4-abc231cd7222' WHERE id = 1; | ||
|
||
ALTER TABLE tenants ALTER COLUMN workspace_id SET NOT NULL; | ||
DO $$ | ||
BEGIN | ||
|
||
BEGIN | ||
ALTER TABLE tenants ADD CONSTRAINT tenants_workspace_id_key UNIQUE (workspace_id); | ||
EXCEPTION | ||
WHEN duplicate_table THEN -- postgres raises duplicate_table at surprising times. Ex.: for UNIQUE constraints. | ||
WHEN duplicate_object THEN | ||
RAISE NOTICE 'Table constraint lsif_last_retention_scan_unique already exists, skipping'; | ||
END; | ||
END $$; | ||
|
||
ALTER TABLE tenants ADD COLUMN IF NOT EXISTS display_name text; | ||
|
||
COMMENT ON COLUMN tenants.workspace_id IS 'The ID in workspaces service of the tenant. This is used for identifying the link between tenant and workspace.'; | ||
COMMENT ON COLUMN tenants.display_name IS 'An optional display name for the tenant. This is used for rendering the tenant name in the UI.'; |
1 change: 1 addition & 0 deletions
1
migrations/codeinsights/1728937632_create_insight_view_unique_id_unique_idx_new/down.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 @@ | ||
DROP INDEX IF EXISTS insight_view_unique_id_unique_idx_new; |
3 changes: 3 additions & 0 deletions
3
...ations/codeinsights/1728937632_create_insight_view_unique_id_unique_idx_new/metadata.yaml
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,3 @@ | ||
name: Create insight_view_unique_id_unique_idx_new | ||
parents: [1727490285] | ||
createIndexConcurrently: true |
1 change: 1 addition & 0 deletions
1
migrations/codeinsights/1728937632_create_insight_view_unique_id_unique_idx_new/up.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 @@ | ||
CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS insight_view_unique_id_unique_idx_new ON insight_view (unique_id, tenant_id); |
1 change: 1 addition & 0 deletions
1
migrations/codeinsights/1728937673_create_metadata_metadata_unique_idx_new/down.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 @@ | ||
DROP INDEX IF EXISTS metadata_metadata_unique_idx_new; |
3 changes: 3 additions & 0 deletions
3
migrations/codeinsights/1728937673_create_metadata_metadata_unique_idx_new/metadata.yaml
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,3 @@ | ||
name: Create metadata_metadata_unique_idx_new | ||
parents: [1728937632] | ||
createIndexConcurrently: true |
1 change: 1 addition & 0 deletions
1
migrations/codeinsights/1728937673_create_metadata_metadata_unique_idx_new/up.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 @@ | ||
CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS metadata_metadata_unique_idx_new ON metadata (metadata, tenant_id); |
1 change: 1 addition & 0 deletions
1
migrations/codeinsights/1728937726_create_repo_names_name_unique_idx_new/down.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 @@ | ||
DROP INDEX IF EXISTS repo_names_name_unique_idx_new; |
3 changes: 3 additions & 0 deletions
3
migrations/codeinsights/1728937726_create_repo_names_name_unique_idx_new/metadata.yaml
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,3 @@ | ||
name: Create repo_names_name_unique_idx_new | ||
parents: [1728937673] | ||
createIndexConcurrently: true |
1 change: 1 addition & 0 deletions
1
migrations/codeinsights/1728937726_create_repo_names_name_unique_idx_new/up.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 @@ | ||
CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS repo_names_name_unique_idx_new ON repo_names (name, tenant_id); |
Oops, something went wrong.