| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class Version20230412051210 extends AbstractMigration |
||
| 14 | { |
||
| 15 | public function getDescription() : string |
||
| 16 | { |
||
| 17 | return 'Creates the table that stores user sessions.'; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function up(Schema $schema) : void |
||
| 25 | `sess_id` VARBINARY(128) NOT NULL PRIMARY KEY, |
||
| 26 | `sess_data` BLOB NOT NULL, |
||
| 27 | `sess_lifetime` INTEGER UNSIGNED NOT NULL, |
||
| 28 | `sess_time` INTEGER UNSIGNED NOT NULL, |
||
| 29 | INDEX `sessions_sess_lifetime_idx` (`sess_lifetime`) |
||
| 30 | ) COLLATE utf8mb4_bin, ENGINE = InnoDB;" |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function down(Schema $schema) : void |
||
| 39 |