From 9b3b2cc8cdb6d78558801aa01160691d439365f7 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Tue, 12 Mar 2024 14:38:46 +0100 Subject: [PATCH 1/3] Changes for federative requests --- api/migrations/Version20240311121033.php | 426 +++++++++++++++++++++++ api/migrations/Version20240311125549.php | 386 ++++++++++++++++++++ api/migrations/Version20240311132843.php | 392 +++++++++++++++++++++ api/src/Entity/Endpoint.php | 31 ++ api/src/Entity/Gateway.php | 34 ++ 5 files changed, 1269 insertions(+) create mode 100644 api/migrations/Version20240311121033.php create mode 100644 api/migrations/Version20240311125549.php create mode 100644 api/migrations/Version20240311132843.php diff --git a/api/migrations/Version20240311121033.php b/api/migrations/Version20240311121033.php new file mode 100644 index 000000000..36ef23ed4 --- /dev/null +++ b/api/migrations/Version20240311121033.php @@ -0,0 +1,426 @@ +addSql('ALTER TABLE action ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE action ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); + $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE cronjob ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE entity ALTER persist SET DEFAULT \'true\''); + $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER location SET DEFAULT \'\''); + $this->addSql('ALTER TABLE gateway ALTER logging_config DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE gateway_audit_trail DROP uuid'); + $this->addSql('ALTER TABLE gateway_audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway_audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway_audit_trail ALTER amendments TYPE TEXT'); + $this->addSql('ALTER TABLE gateway_audit_trail ALTER amendments DROP DEFAULT'); + $this->addSql('COMMENT ON COLUMN gateway_audit_trail.amendments IS \'(DC2Type:array)\''); + $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); + $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE mapping ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE organization ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER version SET NOT NULL'); + $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER version SET NOT NULL'); + $this->addSql('ALTER INDEX idx_8d93d6499e6b1585 RENAME TO IDX_8D93D64932C8A3DE'); + $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('CREATE SCHEMA public'); + $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE cronjob ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE entity ALTER persist SET DEFAULT \'false\''); + $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE mapping ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER version DROP NOT NULL'); + $this->addSql('ALTER INDEX idx_8d93d64932c8a3de RENAME TO idx_8d93d6499e6b1585'); + $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE organization ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); + $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE action ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER version DROP NOT NULL'); + $this->addSql('ALTER TABLE gateway ALTER location DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER logging_config SET DEFAULT \'a:10:{s:10:"callMethod";b:1;s:7:"callUrl";b:1;s:9:"callQuery";b:1;s:15:"callContentType";b:1;s:8:"callBody";b:1;s:18:"responseStatusCode";b:1;s:19:"responseContentType";b:1;s:12:"responseBody";b:1;s:16:"maxCharCountBody";i:500;s:21:"maxCharCountErrorBody";i:2000;}\''); + $this->addSql('ALTER TABLE "gateway_audit_trail" ADD uuid UUID DEFAULT NULL'); + $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER amendments TYPE TEXT'); + $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER amendments DROP DEFAULT'); + $this->addSql('COMMENT ON COLUMN "gateway_audit_trail".amendments IS \'(DC2Type:object)\''); + $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER version DROP NOT NULL'); + } +} diff --git a/api/migrations/Version20240311125549.php b/api/migrations/Version20240311125549.php new file mode 100644 index 000000000..ed4fd2012 --- /dev/null +++ b/api/migrations/Version20240311125549.php @@ -0,0 +1,386 @@ +addSql('ALTER TABLE action ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); + $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway_audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway_audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); + $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('CREATE SCHEMA public'); + $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); + } +} diff --git a/api/migrations/Version20240311132843.php b/api/migrations/Version20240311132843.php new file mode 100644 index 000000000..0d1bc8913 --- /dev/null +++ b/api/migrations/Version20240311132843.php @@ -0,0 +1,392 @@ +addSql('CREATE TABLE endpoint_gateway (endpoint_id UUID NOT NULL, gateway_id UUID NOT NULL, PRIMARY KEY(endpoint_id, gateway_id))'); + $this->addSql('CREATE INDEX IDX_39C1245121AF7E36 ON endpoint_gateway (endpoint_id)'); + $this->addSql('CREATE INDEX IDX_39C12451577F8E00 ON endpoint_gateway (gateway_id)'); + $this->addSql('ALTER TABLE endpoint_gateway ADD CONSTRAINT FK_39C1245121AF7E36 FOREIGN KEY (endpoint_id) REFERENCES endpoint (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE endpoint_gateway ADD CONSTRAINT FK_39C12451577F8E00 FOREIGN KEY (gateway_id) REFERENCES gateway (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); + $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway_audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway_audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); + $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('CREATE SCHEMA public'); + $this->addSql('DROP TABLE endpoint_gateway'); + $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); + $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); + $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); + $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); + $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); + $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); + $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); + $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); + $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); + $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); + $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); + $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); + $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); + $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); + $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); + } +} diff --git a/api/src/Entity/Endpoint.php b/api/src/Entity/Endpoint.php index 1eb7c2772..a53d44801 100644 --- a/api/src/Entity/Endpoint.php +++ b/api/src/Entity/Endpoint.php @@ -340,6 +340,12 @@ class Endpoint */ private string $version = '0.0.0'; + /** + * @Groups({"read", "write"}) + * @ORM\ManyToMany(targetEntity=Gateway::class, inversedBy="federationEndpoints") + */ + private $federationProxies; + /** * Constructor for creating an Endpoint. Use $entity to create an Endpoint for an Entity or * use $source to create an Endpoint for a source, a proxy Endpoint. @@ -357,6 +363,7 @@ public function __construct(?Entity $entity = null, ?Source $source = null, ?arr $this->collections = new ArrayCollection(); $this->properties = new ArrayCollection(); $this->entities = new ArrayCollection(); + $this->federationProxies = new ArrayCollection(); if (!$entity && !$source && isset($configuration['entities']) === false) { return; @@ -962,4 +969,28 @@ public function setVersion(?string $version): self return $this; } + + /** + * @return Collection|Gateway[] + */ + public function getFederationProxies(): Collection + { + return $this->federationProxies; + } + + public function addFederationProxy(Gateway $federationProxy): self + { + if (!$this->federationProxies->contains($federationProxy)) { + $this->federationProxies[] = $federationProxy; + } + + return $this; + } + + public function removeFederationProxy(Gateway $federationProxy): self + { + $this->federationProxies->removeElement($federationProxy); + + return $this; + } } diff --git a/api/src/Entity/Gateway.php b/api/src/Entity/Gateway.php index e3251a52c..51418d49f 100644 --- a/api/src/Entity/Gateway.php +++ b/api/src/Entity/Gateway.php @@ -767,6 +767,12 @@ class Gateway */ private $proxies; + /** + * @Groups({"read", "write"}) + * @ORM\ManyToMany(targetEntity=Endpoint::class, mappedBy="federationProxies") + */ + private $federationEndpoints; + /** * Constructor for Gateway. * @@ -781,6 +787,7 @@ public function __construct(?array $configuration = []) if ($configuration) { $this->fromSchema($configuration); } + $this->federationEndpoints = new ArrayCollection(); } /** @@ -1411,4 +1418,31 @@ public function removeProxy(Endpoint $proxy): self return $this; } + + /** + * @return Collection|Endpoint[] + */ + public function getFederationEndpoints(): Collection + { + return $this->federationEndpoints; + } + + public function addFederationEndpoint(Endpoint $federationEndpoint): self + { + if (!$this->federationEndpoints->contains($federationEndpoint)) { + $this->federationEndpoints[] = $federationEndpoint; + $federationEndpoint->addFederationProxy($this); + } + + return $this; + } + + public function removeFederationEndpoint(Endpoint $federationEndpoint): self + { + if ($this->federationEndpoints->removeElement($federationEndpoint)) { + $federationEndpoint->removeFederationProxy($this); + } + + return $this; + } } From c0a5ddf601feb3f028957376299cfd794ae9008c Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 13 Mar 2024 09:13:07 +0100 Subject: [PATCH 2/3] Docblocks on federation properties --- api/src/Entity/Endpoint.php | 5 ++++- api/src/Entity/Gateway.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api/src/Entity/Endpoint.php b/api/src/Entity/Endpoint.php index a53d44801..cf8ee5e4b 100644 --- a/api/src/Entity/Endpoint.php +++ b/api/src/Entity/Endpoint.php @@ -341,10 +341,13 @@ class Endpoint private string $version = '0.0.0'; /** + * @var Collection The proxies that can be used for federated calls. + * + * @MaxDepth(1) * @Groups({"read", "write"}) * @ORM\ManyToMany(targetEntity=Gateway::class, inversedBy="federationEndpoints") */ - private $federationProxies; + private Collection $federationProxies; /** * Constructor for creating an Endpoint. Use $entity to create an Endpoint for an Entity or diff --git a/api/src/Entity/Gateway.php b/api/src/Entity/Gateway.php index 51418d49f..25a0221b1 100644 --- a/api/src/Entity/Gateway.php +++ b/api/src/Entity/Gateway.php @@ -768,10 +768,13 @@ class Gateway private $proxies; /** + * @var Collection The endpoints for which this endpoint is a federated proxy. + * + * @MaxDepth(1) * @Groups({"read", "write"}) * @ORM\ManyToMany(targetEntity=Endpoint::class, mappedBy="federationProxies") */ - private $federationEndpoints; + private Collection $federationEndpoints; /** * Constructor for Gateway. From b627fe34bc782eec2bc1780afc3f421354dc911d Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Wed, 13 Mar 2024 09:34:55 +0100 Subject: [PATCH 3/3] Minimize migrations --- api/migrations/Version20240311121033.php | 395 ----------------------- api/migrations/Version20240311125549.php | 386 ---------------------- api/migrations/Version20240311132843.php | 358 +------------------- 3 files changed, 1 insertion(+), 1138 deletions(-) delete mode 100644 api/migrations/Version20240311125549.php diff --git a/api/migrations/Version20240311121033.php b/api/migrations/Version20240311121033.php index 36ef23ed4..54cc33f36 100644 --- a/api/migrations/Version20240311121033.php +++ b/api/migrations/Version20240311121033.php @@ -20,407 +20,12 @@ public function getDescription(): string public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE action ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); - $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE cronjob ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE entity ALTER persist SET DEFAULT \'true\''); - $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER location SET DEFAULT \'\''); - $this->addSql('ALTER TABLE gateway ALTER logging_config DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE gateway_audit_trail DROP uuid'); - $this->addSql('ALTER TABLE gateway_audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway_audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway_audit_trail ALTER amendments TYPE TEXT'); - $this->addSql('ALTER TABLE gateway_audit_trail ALTER amendments DROP DEFAULT'); - $this->addSql('COMMENT ON COLUMN gateway_audit_trail.amendments IS \'(DC2Type:array)\''); - $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); - $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE mapping ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE organization ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER version SET NOT NULL'); - $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER version SET NOT NULL'); $this->addSql('ALTER INDEX idx_8d93d6499e6b1585 RENAME TO IDX_8D93D64932C8A3DE'); - $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); - $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE cronjob ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE entity ALTER persist SET DEFAULT \'false\''); - $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE mapping ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER version DROP NOT NULL'); $this->addSql('ALTER INDEX idx_8d93d64932c8a3de RENAME TO idx_8d93d6499e6b1585'); - $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE organization ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); - $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE action ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER version DROP NOT NULL'); - $this->addSql('ALTER TABLE gateway ALTER location DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER logging_config SET DEFAULT \'a:10:{s:10:"callMethod";b:1;s:7:"callUrl";b:1;s:9:"callQuery";b:1;s:15:"callContentType";b:1;s:8:"callBody";b:1;s:18:"responseStatusCode";b:1;s:19:"responseContentType";b:1;s:12:"responseBody";b:1;s:16:"maxCharCountBody";i:500;s:21:"maxCharCountErrorBody";i:2000;}\''); - $this->addSql('ALTER TABLE "gateway_audit_trail" ADD uuid UUID DEFAULT NULL'); - $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER amendments TYPE TEXT'); - $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER amendments DROP DEFAULT'); - $this->addSql('COMMENT ON COLUMN "gateway_audit_trail".amendments IS \'(DC2Type:object)\''); - $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER version DROP NOT NULL'); } } diff --git a/api/migrations/Version20240311125549.php b/api/migrations/Version20240311125549.php deleted file mode 100644 index ed4fd2012..000000000 --- a/api/migrations/Version20240311125549.php +++ /dev/null @@ -1,386 +0,0 @@ -addSql('ALTER TABLE action ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); - $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway_audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway_audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); - $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); - } - - public function down(Schema $schema): void - { - // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); - $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); - } -} diff --git a/api/migrations/Version20240311132843.php b/api/migrations/Version20240311132843.php index 0d1bc8913..39b2bfc04 100644 --- a/api/migrations/Version20240311132843.php +++ b/api/migrations/Version20240311132843.php @@ -25,368 +25,12 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX IDX_39C12451577F8E00 ON endpoint_gateway (gateway_id)'); $this->addSql('ALTER TABLE endpoint_gateway ADD CONSTRAINT FK_39C1245121AF7E36 FOREIGN KEY (endpoint_id) REFERENCES endpoint (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); $this->addSql('ALTER TABLE endpoint_gateway ADD CONSTRAINT FK_39C12451577F8E00 FOREIGN KEY (gateway_id) REFERENCES gateway (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); - $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); - $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway_audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway_audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); - $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); + } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); $this->addSql('DROP TABLE endpoint_gateway'); - $this->addSql('ALTER TABLE authentication ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE authentication ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE action_handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action_handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE audit_trail ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE audit_trail ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE change_log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE change_log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE cronjob ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE cronjob ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE dashboard_card ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE translation ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE translation ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE application_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER collection_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE document ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE document ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE handler_endpoint ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE gateway ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE gateway ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "gateway_audit_trail" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id TYPE UUID'); - $this->addSql('ALTER TABLE collection_entity ALTER source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE handler ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE handler ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER handler_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER handler_id DROP DEFAULT'); - $this->addSql('ALTER TABLE log ALTER call_id TYPE UUID'); - $this->addSql('ALTER TABLE log ALTER call_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id TYPE UUID'); - $this->addSql('ALTER TABLE endpoint ALTER proxy_id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE property ALTER endpoint_id TYPE UUID'); - $this->addSql('ALTER TABLE property ALTER endpoint_id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE contract ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE contract ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE purpose ALTER contract_id TYPE UUID'); - $this->addSql('ALTER TABLE purpose ALTER contract_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group ALTER parent_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group ALTER parent_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER to_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE soap ALTER from_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE entity ALTER default_source_id TYPE UUID'); - $this->addSql('ALTER TABLE entity ALTER default_source_id DROP DEFAULT'); - $this->addSql('ALTER TABLE action ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE action ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE mapping ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE mapping ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER action_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER action_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER gateway_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER source_object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id TYPE UUID'); - $this->addSql('ALTER TABLE synchronization ALTER mapping_id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE template ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE template ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE unread ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE unread ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER security_group_id DROP DEFAULT'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE security_group_user ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE organization ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE organization ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE "user" ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE "user" ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE application ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE application ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER user_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER user_id DROP DEFAULT'); - $this->addSql('ALTER TABLE user_application ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE user_application ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE file ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE file ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER object_entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity_value ALTER value_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER search_partial_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER object_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER object_id DROP DEFAULT'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id TYPE UUID'); - $this->addSql('ALTER TABLE attribute ALTER inversed_by_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER application_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER application_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER organization_id DROP DEFAULT'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id TYPE UUID'); - $this->addSql('ALTER TABLE object_entity ALTER entity_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER attribute_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER attribute_id DROP DEFAULT'); - $this->addSql('ALTER TABLE value ALTER object_entity_id TYPE UUID'); - $this->addSql('ALTER TABLE value ALTER object_entity_id DROP DEFAULT'); } }