Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class CreateUploadfileFilesTable extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('uploadfile_files', function(Blueprint $table) { |
||
17 | $table->bigIncrements('id'); |
||
18 | $table->string('title'); |
||
19 | $table->text('description')->nullable(); |
||
20 | $table->string('filename'); |
||
21 | $table->string('mime'); |
||
22 | $table->string('path'); |
||
23 | $table->integer('size'); |
||
24 | $table->unsignedInteger('uploaded_by'); |
||
25 | $table->unsignedInteger('module_instance_id'); |
||
26 | $table->unsignedInteger('activity_instance_id'); |
||
27 | $table->timestamps(); |
||
28 | $table->softDeletes(); |
||
29 | }); |
||
30 | |||
31 | |||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Reverse the migrations. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function down() |
||
42 | } |
||
43 | } |
||
44 |