diff --git a/migrations/2023-05-23-211653_add-partial-version-index/down.sql b/migrations/2023-05-23-211653_add-partial-version-index/down.sql new file mode 100644 index 00000000000..0f9c0bc1af3 --- /dev/null +++ b/migrations/2023-05-23-211653_add-partial-version-index/down.sql @@ -0,0 +1 @@ +DROP INDEX versions_num_partial_idx; diff --git a/migrations/2023-05-23-211653_add-partial-version-index/up.sql b/migrations/2023-05-23-211653_add-partial-version-index/up.sql new file mode 100644 index 00000000000..5731cde9610 --- /dev/null +++ b/migrations/2023-05-23-211653_add-partial-version-index/up.sql @@ -0,0 +1,4 @@ +CREATE INDEX + versions_num_partial_idx +ON + versions (split_part(num, '+', 1));