mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-08 20:18:09 -05:00
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:
co-authored by
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Miguel de la Cruz
parent
9eb070b72b
commit
5b4efbd28a
@@ -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
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
DROP INDEX IF EXISTS idx_propertyfields_protected;
|
||||
|
||||
ALTER TABLE PropertyFields
|
||||
DROP COLUMN IF EXISTS PermissionOptions,
|
||||
DROP COLUMN IF EXISTS PermissionValues,
|
||||
|
||||
-4
@@ -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;
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
-- morph:nontransactional
|
||||
DROP INDEX CONCURRENTLY IF EXISTS idx_propertyfields_protected;
|
||||
Reference in New Issue
Block a user