| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | final class Version20250526153605_HistoryWithLocation extends AbstractMigration |
||
| 11 | { |
||
| 12 | public function getDescription(): string |
||
| 13 | { |
||
| 14 | return 'Adds optional location reference to history entries.'; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function up(Schema $schema): void |
||
| 26 | CREATE INDEX IDX_7F01683964D218E ON stu_history (location_id) |
||
| 27 | SQL); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function down(Schema $schema): void |
||
| 39 | ALTER TABLE stu_history DROP location_id |
||
| 40 | SQL); |
||
| 43 |