removeIndexIfExists example

/** * @throws DbalDriverException * @throws DbalException */
    protected function setUp(): void
    {
        parent::setUp();

        $this->connection = KernelLifecycleManager::getConnection();

        $this->removeIndexIfExists();
    }

    /** * @throws DbalDriverException * @throws DbalException */
    public function testOrderOrderNumberIndexWillBeAdded(): void
    {
        $this->executeMigration();

        static::assertTrue($this->isIndexCreated());
    }
Home | Imprint | This part of the site doesn't use cookies.