mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-14 04:29:21 +00:00
133 lines
2.4 KiB
MySQL
133 lines
2.4 KiB
MySQL
![]() |
--
|
||
|
-- Drop indexes for deleted boolean column
|
||
|
-- Drop unused indexes for updatedAt and updatedBy
|
||
|
--
|
||
|
ALTER TABLE field_relationship
|
||
|
DROP INDEX edgeIdx;
|
||
|
|
||
|
ALTER TABLE dbservice_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE messaging_service_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE dashboard_service_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE pipeline_service_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE storage_service_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE database_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE table_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE metric_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE report_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE dashboard_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE ml_model_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE pipeline_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE topic_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE chart_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE location_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE thread_entity
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE policy_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE team_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE user_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE bot_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE role_entity
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX defaultRole,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE tag_category
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE tag
|
||
|
DROP INDEX deleted,
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE airflow_pipeline_entity
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE glossary_entity
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|
||
|
|
||
|
ALTER TABLE glossary_term_entity
|
||
|
DROP INDEX updatedAt,
|
||
|
DROP INDEX updatedBy;
|