migrations/2019/10/Version20191010072618.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;final class Version20191010072618 extends AbstractMigration{public function up(Schema $schema): void{$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');$this->addSql('CREATE TABLE document_dropbox_cursor (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid_binary)\', processed_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', db_cursor LONGTEXT NOT NULL, INDEX processed_at_idx (processed_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');$this->addSql('ALTER TABLE document DROP INDEX UNIQ_D8698A76727ACA70, ADD INDEX IDX_D8698A76727ACA70 (parent_id)');}public function down(Schema $schema): void{$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');$this->addSql('DROP TABLE document_dropbox_cursor');$this->addSql('ALTER TABLE document DROP INDEX IDX_D8698A76727ACA70, ADD UNIQUE INDEX UNIQ_D8698A76727ACA70 (parent_id)');}}