Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function up(): void |
||
16 | { |
||
17 | $table = ConfigProvider::getScrapsTable(); |
||
18 | if (!Schema::hasTable($table)) { |
||
19 | Schema::create($table, static function (Blueprint $table) { |
||
20 | $table->increments('id'); |
||
21 | $table->string('hash', 128)->unique(); // a hash |
||
22 | $table->string('title')->nullable(); |
||
23 | $table->string('model', 256); |
||
24 | $table->string('related', 256)->nullable(); |
||
25 | $table->text('data'); |
||
26 | $table->string('source', 400); |
||
27 | $table->timestamps(); |
||
28 | }); |
||
42 |