mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-01 15:00:08 +08:00
* 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:
committed by
GitHub
parent
a4c35451b8
commit
1b018ea016
@@ -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
|
||||
|
||||
-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