migrations/2021/09/Version20210929200048.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 Version20210929200048 extends AbstractMigration
  7. {
  8.     public function up(Schema $schema): void
  9.     {
  10.     }
  11.     public function down(Schema $schema): void
  12.     {
  13.     }
  14.     public function postUp(Schema $schema): void
  15.     {
  16.         $this->connection->executeQuery('INSERT INTO document_template (id, name, filename, preview_image, formats, contact_types_by, contact_types_for) VALUES (0x11ec215c72483ba896210242ac130002, "Declaration of Completeness NO", "declaration-of-completeness-no", "3j90xtg8aw27p9c8828ap16002.png", "[\\"docx\\"]", "[\\"1\\"]", "[\\"1\\"]")');
  17.         $this->connection->executeQuery('INSERT INTO document_template (id, name, filename, preview_image, formats, contact_types_by, contact_types_for) VALUES (0x11ec215c7e27c5ba96210242ac130002, "Declaration of Completeness EN", "declaration-of-completeness-en", "3y4z2vm8aw27p9c8828ap16002.png", "[\\"docx\\"]", "[\\"1\\"]", "[\\"1\\"]")');
  18.     }
  19.     public function postDown(Schema $schema): void
  20.     {
  21.         $this->connection->executeQuery('DELETE FROM document_template WHERE id=0x11ec215c72483ba896210242ac130002');
  22.         $this->connection->executeQuery('DELETE FROM document_template WHERE id=0x11ec215c7e27c5ba96210242ac130002');
  23.     }
  24. }