From d6ef49e2c0a55888bf117a73b5eb9c202116157b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Sat, 4 Mar 2023 00:21:57 +0100 Subject: [PATCH] =?UTF-8?q?Zapomenut=C3=A1=20migrace=20(#959)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * disable registration * config property * migration added --- migrations/Version20230303221015.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 migrations/Version20230303221015.php diff --git a/migrations/Version20230303221015.php b/migrations/Version20230303221015.php new file mode 100644 index 000000000..540369ff8 --- /dev/null +++ b/migrations/Version20230303221015.php @@ -0,0 +1,27 @@ +abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('INSERT INTO `settings` (`item`, `value`) VALUES (\'group_registration_allowed\', \'0\')'); + } + + public function down(Schema $schema): void + { + } +}