Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | public function up() |
||
14 | { |
||
15 | Schema::create('syncs', function($table) |
||
16 | { |
||
17 | |||
18 | $table->increments('id'); |
||
19 | |||
20 | $table->integer('morph_id')->unsigned(); |
||
21 | $table->integer('morph_type')->unsigned(); |
||
22 | |||
23 | $table->string('entity')->nullable(); |
||
24 | $table->string('type', 60); |
||
25 | $table->string('url')->nullable(); |
||
26 | $table->string('class'); |
||
27 | $table->string('status', 10)->default('fail'); // fail / success |
||
28 | $table->text('response')->nullable(); |
||
29 | |||
30 | $table->timestamp('started_at')->default('1970-01-01 00:00:00'); |
||
31 | $table->timestamps(); |
||
32 | |||
33 | $table->engine = 'InnoDB'; |
||
34 | |||
35 | }); |
||
36 | } |
||
37 | |||
48 | } |