| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CreateCrawlersTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('crawlers', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | |||
| 19 | $table->string('name'); |
||
| 20 | $table->text('description'); |
||
| 21 | $table->integer('latest_status')->nullable(); |
||
| 22 | $table->boolean('enabled')->default(false); |
||
| 23 | $table->boolean('multiple_crawlers')->default(false); |
||
| 24 | $table->integer('time_between')->nullable(); |
||
| 25 | |||
| 26 | $table->timestamps(); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Reverse the migrations. |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | public function down() |
||
| 38 | } |
||
| 39 | } |
||
| 40 |