Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class CreateH5pLibrariesCachedassetsTable extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('h5p_libraries_cachedassets', function (Blueprint $table) { |
||
17 | $table->bigInteger('library_id')->unsigned(); |
||
18 | $table->string('hash', 64); |
||
19 | $table->primary(['library_id', 'hash'], 'fk_primary'); |
||
20 | }); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Reverse the migrations. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function down() |
||
31 | } |
||
32 | } |
||
33 |