diff --git a/app/DoctrineMigrations/Version20160324011937.php b/app/DoctrineMigrations/Version20160324011937.php new file mode 100644 index 0000000..6b4da45 --- /dev/null +++ b/app/DoctrineMigrations/Version20160324011937.php @@ -0,0 +1,34 @@ +abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + + $this->addSql('ALTER TABLE posts.posts ALTER updated_at DROP NOT NULL'); + } + + /** + * @param Schema $schema + */ + public function down(Schema $schema) + { + // this down() migration is auto-generated, please modify it to your needs + $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + + $this->addSql('ALTER TABLE posts.posts ALTER updated_at SET NOT NULL'); + } +}