From ba53ce40fa8c71464a221aa1b1abeecc6e24bacc Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 28 Sep 2021 20:32:43 +0200 Subject: [PATCH] Add migration file. --- .../migrations/Version20210928182542.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/Bundle/ChillDocStoreBundle/migrations/Version20210928182542.php diff --git a/src/Bundle/ChillDocStoreBundle/migrations/Version20210928182542.php b/src/Bundle/ChillDocStoreBundle/migrations/Version20210928182542.php new file mode 100644 index 000000000..756faf654 --- /dev/null +++ b/src/Bundle/ChillDocStoreBundle/migrations/Version20210928182542.php @@ -0,0 +1,30 @@ +addSql('ALTER TABLE chill_doc.stored_object ADD uuid UUID NOT NULL'); + $this->addSql('CREATE UNIQUE INDEX UNIQ_49604E36D17F50A6 ON chill_doc.stored_object (uuid)'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('DROP INDEX UNIQ_49604E36D17F50A6'); + $this->addSql('ALTER TABLE chill_doc.stored_object DROP uuid'); + } +}