<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240221150717 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql(
"
CREATE TABLE public.instance (
id SERIAL,
name VARCHAR(50) NOT NULL,
url VARCHAR(255) NOT NULL,
options TEXT DEFAULT NULL,
created_at timestamp(0) without time zone DEFAULT NOW()::timestamp without time zone,
updated_at timestamp(0) without time zone DEFAULT NULL::timestamp without time zone,
deleted_at timestamp(0) without time zone DEFAULT NULL::timestamp without time zone
);"
);
}
public function down(Schema $schema): void
{
$this->addSql("DROP TABLE public.instance;");
}
}