intranet/migrations/Version20230616184236.php
Audrey Jensen 632199009d init
2023-06-28 15:38:14 +00:00

35 lines
1.2 KiB
PHP

<?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 Version20230616184236 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE attachment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, content_type VARCHAR(255) NOT NULL, size INTEGER NOT NULL, filename VARCHAR(255) NOT NULL, attachable_type VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL --(DC2Type:datetime_immutable)
, updated_at DATETIME DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, content_name VARCHAR(255) NOT NULL)');
$this->addSql('CREATE TABLE content_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE attachment');
$this->addSql('DROP TABLE content_type');
}
}