Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class CreateDatastoreCommentsTable extends Migration |
||
12 | { |
||
13 | /** |
||
14 | * Run the migrations. |
||
15 | * |
||
16 | * @return void |
||
17 | */ |
||
18 | public function up() |
||
19 | { |
||
20 | Schema::create('datastore_comments', function (Blueprint $table) { |
||
21 | $table->bigIncrements('id'); |
||
22 | $table->bigInteger('user_id')->unsigned(); |
||
23 | $table->bigInteger('datastore_id')->unsigned(); |
||
24 | $table->bigInteger('parent_id')->unsigned()->nullable(); |
||
25 | $table->text('body'); |
||
26 | $table->timestamps(); |
||
27 | $table->softDeletes(); |
||
28 | }); |
||
29 | |||
30 | |||
31 | |||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Reverse the migrations. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function down() |
||
42 | } |
||
43 | } |
||
44 |