| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function up() |
||
| 13 | { |
||
| 14 | $local_conf = config('shorturl.drivers.local'); |
||
| 15 | Schema::create($local_conf['table_name'], function (Blueprint $table) use ($local_conf) { |
||
| 16 | $table->charset = $local_conf['charset'] ?? "utf8"; |
||
| 17 | $table->collation = $local_conf['collation'] ?? "utf8_bin"; |
||
| 18 | $table->increments('id'); |
||
| 19 | $table->string('long_path', $local_conf['index_key_prefix_size'])->unique(); |
||
| 20 | $table->string('short_path', 10)->unique(); |
||
| 21 | $table->string('base_url')->nullable(); |
||
| 22 | $table->bigInteger('clicks')->nullable()->default(0); |
||
| 23 | $table->text('properties')->nullable(); |
||
| 24 | $table->timestamps(); |
||
| 25 | }); |
||
| 37 |