remove incorrect timezone call
This commit is contained in:
parent
2eb2ea81f3
commit
1957778dff
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue