Skip to content

Commit d6ef49e

Browse files
committed
Zapomenutá migrace (#959)
* disable registration * config property * migration added
1 parent b2387c0 commit d6ef49e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

migrations/Version20230303221015.php

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
final class Version20230303221015 extends AbstractMigration
11+
{
12+
public function getDescription(): string
13+
{
14+
return '';
15+
}
16+
17+
public function up(Schema $schema): void
18+
{
19+
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
20+
21+
$this->addSql('INSERT INTO `settings` (`item`, `value`) VALUES (\'group_registration_allowed\', \'0\')');
22+
}
23+
24+
public function down(Schema $schema): void
25+
{
26+
}
27+
}

0 commit comments

Comments
 (0)