migrations/Version20240221150717.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20240221150717 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql(
  18.             "
  19.             CREATE TABLE public.instance (
  20.     id SERIAL,
  21.     name VARCHAR(50) NOT NULL,
  22.     url VARCHAR(255) NOT NULL,
  23.     options TEXT DEFAULT NULL,
  24.     created_at timestamp(0) without time zone DEFAULT NOW()::timestamp without time zone,
  25.     updated_at timestamp(0) without time zone DEFAULT NULL::timestamp without time zone,
  26.     deleted_at timestamp(0) without time zone DEFAULT NULL::timestamp without time zone
  27. );"
  28.         );
  29.     }
  30.     public function down(Schema $schema): void
  31.     {
  32.         $this->addSql("DROP TABLE public.instance;");
  33.     }
  34. }