migrations/2021/08/Version20210804205400.php line 1

  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. final class Version20210804205400 extends AbstractMigration
  7. {
  8.     public function up(Schema $schema): void
  9.     {
  10.         $this->addSql('DROP TABLE document_dropbox_cursor');
  11.     }
  12.     public function down(Schema $schema): void
  13.     {
  14.         $this->addSql('CREATE TABLE document_dropbox_cursor (id BINARY(16) NOT NULL COMMENT \'(DC2Type:document_dropbox_cursor_id)\', 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');
  15.     }
  16. }