diff --git a/migrations/Version20260522200819.php b/migrations/Version20260522200819.php index 7cd6ea1..f424065 100644 --- a/migrations/Version20260522200819.php +++ b/migrations/Version20260522200819.php @@ -21,7 +21,7 @@ final class Version20260522200819 extends AbstractMigration { // this up() migration is auto-generated, please modify it to your needs $this->addSql('CREATE TABLE page (id INT AUTO_INCREMENT, title VARCHAR(255), text TEXT, url VARCHAR(255), PRIMARY KEY (id))'); - $this->addSql('CREATE TABLE post (id INT AUTO_INCREMENT, title VARCHAR(255), date TIMESTAMP(0) WITHOUT TIME ZONE , text TEXT, url VARCHAR(255), PRIMARY KEY (id))'); + $this->addSql('CREATE TABLE post (id INT AUTO_INCREMENT, title VARCHAR(255), date TIMESTAMP(0) , text TEXT, url VARCHAR(255), PRIMARY KEY (id))'); } public function down(Schema $schema): void diff --git a/migrations/Version20260601003707.php b/migrations/Version20260601003707.php index 44f2821..31a5c95 100644 --- a/migrations/Version20260601003707.php +++ b/migrations/Version20260601003707.php @@ -22,7 +22,7 @@ final class Version20260601003707 extends AbstractMigration // this up() migration is auto-generated, please modify it to your needs $this->addSql('CREATE TABLE photo (id INT AUTO_INCREMENT, file VARCHAR(255), equipment VARCHAR(255), location VARCHAR(255), caption VARCHAR(255), date DATE, photos_id INT DEFAULT NULL, PRIMARY KEY (id))'); $this->addSql('CREATE INDEX IDX_14B78418301EC62 ON photo (photos_id)'); - $this->addSql('CREATE TABLE photos (id INT AUTO_INCREMENT, title VARCHAR(255), date TIMESTAMP(0) WITHOUT TIME ZONE, category_id INT DEFAULT NULL, PRIMARY KEY (id))'); + $this->addSql('CREATE TABLE photos (id INT AUTO_INCREMENT, title VARCHAR(255), date TIMESTAMP(0) , category_id INT DEFAULT NULL, PRIMARY KEY (id))'); $this->addSql('CREATE INDEX IDX_876E0D912469DE2 ON photos (category_id)'); $this->addSql('ALTER TABLE photo ADD CONSTRAINT FK_14B78418301EC62 FOREIGN KEY (photos_id) REFERENCES photos (id)'); $this->addSql('ALTER TABLE photos ADD CONSTRAINT FK_876E0D912469DE2 FOREIGN KEY (category_id) REFERENCES category (id)');