Migration1623391399ChangeConstraintAclRoleAndIntegrationInApp example



        $this->connection->executeStatement(' ALTER TABLE `app` ADD CONSTRAINT `fk.app.integration_id` FOREIGN KEY (`integration_id`) REFERENCES `integration` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `fk.app.acl_role_id` FOREIGN KEY (`acl_role_id`) REFERENCES `acl_role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ');

        $migration = new Migration1623391399ChangeConstraintAclRoleAndIntegrationInApp();
        $migration->update($this->connection);

        $this->connection->beginTransaction();
    }

    public function testItChangeConstraintAclRoleAndIntegrationInApp(): void
    {
        $context = Context::createDefaultContext();

        $appId = Uuid::randomHex();
        $aclRoleId = Uuid::randomHex();
        
Home | Imprint | This part of the site doesn't use cookies.