| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class Version20250528165717_DatabaseEntryLayer extends AbstractMigration |
||
| 12 | { |
||
| 13 | public function getDescription(): string |
||
| 14 | { |
||
| 15 | return 'Add layer_id to stu_database_entrys'; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function up(Schema $schema): void |
||
| 19 | { |
||
| 20 | $this->addSql(<<<'SQL' |
||
| 21 | ALTER TABLE stu_database_entrys ADD layer_id INT DEFAULT NULL |
||
| 22 | SQL); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function down(Schema $schema): void |
||
| 28 | ALTER TABLE stu_database_entrys DROP layer_id |
||
| 29 | SQL); |
||
| 30 | } |
||
| 32 |