Remove unused property fields index (#36279) (#36281)

* Remove unused property fields index

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



---------

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 15:24:59 +02:00
committed by GitHub
parent a4c35451b8
commit 1b018ea016
5 changed files with 4 additions and 6 deletions
@@ -331,3 +331,5 @@ channels/db/migrations/postgres/000166_create_views.down.sql
channels/db/migrations/postgres/000166_create_views.up.sql
channels/db/migrations/postgres/000167_create_views_channel_id_delete_at_index.down.sql
channels/db/migrations/postgres/000167_create_views_channel_id_delete_at_index.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;