Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 2 |
| SchemaVersion | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
| install | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace Luxian\Database\Schema\Version; | |
| use Luxian\Database\Schema\VersionBase; | |
| class SchemaVersion extends VersionBase | |
| { | |
| private const SQL = " | |
| CREATE TABLE `schema_versions` ( | |
| `version` int(10) UNSIGNED NOT NULL COMMENT 'Schema version', | |
| `date` int(10) UNSIGNED NOT NULL COMMENT | |
| 'Installation timestamp (unix timstamp)' | |
| ) | |
| ENGINE=InnoDB | |
| DEFAULT CHARSET=utf8 | |
| COLLATE=utf8_bin | |
| COMMENT='Schema information'; | |
| "; | |
| public function install(): void | |
| { | |
| $this->db->query(self::SQL); | |
| } | |
| } |