| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function up(): void |
||
| 11 | { |
||
| 12 | $table = "users"; |
||
| 13 | |||
| 14 | $qString = QBFacade::create($table) |
||
| 15 | ->integer('id', '', true) |
||
| 16 | ->string('name') |
||
| 17 | ->string('email', 'NOT NULL UNIQUE') |
||
| 18 | ->string('password') |
||
| 19 | ->string('role') |
||
| 20 | ->integer('status', 'DEFAULT 1') |
||
| 21 | ->created_at() |
||
| 22 | ->updated_at() |
||
| 23 | ->pk('id') |
||
| 24 | ->close() |
||
| 25 | ->get(); |
||
| 26 | |||
| 27 | Rudra::get("DSN")->prepare("$qString")->execute(); |
||
| 28 | } |
||
| 30 |