Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | final class Version20201218112016 extends AbstractMigration |
||
23 | { |
||
24 | public function getDescription(): string |
||
25 | { |
||
26 | return 'Create settings table.'; |
||
27 | } |
||
28 | |||
29 | public function up(Schema $schema): void |
||
30 | { |
||
31 | // this up() migration is auto-generated, please modify it to your needs |
||
32 | $this->addSql( |
||
33 | 'CREATE TABLE settings (' . |
||
34 | 'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' . |
||
35 | 'currency VARCHAR(255) NOT NULL, ' . |
||
36 | 'locale VARCHAR(255) NOT NULL, PRIMARY KEY(uuid)' . |
||
37 | ') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB' |
||
38 | ); |
||
39 | } |
||
40 | |||
41 | public function down(Schema $schema): void |
||
45 | } |
||
46 | } |
||
47 |