Remove unused property fields index (#36279)

* Remove unused property fields index

* Update server/channels/db/migrations/migrations.list

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Miguel de la Cruz
2026-04-27 12:32:49 +02:00
committed by GitHub
co-authored by coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Miguel de la Cruz
parent 9eb070b72b
commit 5b4efbd28a
5 changed files with 4 additions and 6 deletions
@@ -337,3 +337,5 @@ channels/db/migrations/postgres/000169_create_linked_field_id_index.down.sql
channels/db/migrations/postgres/000169_create_linked_field_id_index.up.sql
channels/db/migrations/postgres/000170_add_property_groups_version.down.sql
channels/db/migrations/postgres/000170_add_property_groups_version.up.sql
channels/db/migrations/postgres/000171_drop_property_fields_protected_index.down.sql
channels/db/migrations/postgres/000171_drop_property_fields_protected_index.up.sql
@@ -1,5 +1,3 @@
DROP INDEX IF EXISTS idx_propertyfields_protected;
ALTER TABLE PropertyFields
DROP COLUMN IF EXISTS PermissionOptions,
DROP COLUMN IF EXISTS PermissionValues,
@@ -15,7 +15,3 @@ ADD COLUMN IF NOT EXISTS Protected BOOLEAN NOT NULL DEFAULT FALSE,
ADD COLUMN IF NOT EXISTS PermissionField permission_level,
ADD COLUMN IF NOT EXISTS PermissionValues permission_level,
ADD COLUMN IF NOT EXISTS PermissionOptions permission_level;
CREATE INDEX IF NOT EXISTS idx_propertyfields_protected
ON PropertyFields (Protected)
WHERE Protected = true;
@@ -0,0 +1,2 @@
-- morph:nontransactional
DROP INDEX CONCURRENTLY IF EXISTS idx_propertyfields_protected;