Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
13 | public function up() |
||
14 | { |
||
15 | Schema::create('albums', function(Blueprint $table) |
||
16 | { |
||
17 | $table->increments('id'); |
||
18 | $table->string('name'); |
||
19 | $table->string('description')->nullable(); |
||
20 | $table->integer('order')->unsigned(); |
||
21 | $table->timestamps(); |
||
22 | $table->softDeletes(); |
||
23 | }); |
||
24 | DB::table('albums')->insert( |
||
25 | array( |
||
26 | 'name' => 'Default', |
||
27 | 'description' => 'Default Album', |
||
28 | 'created_at' => DB::raw('CURRENT_TIMESTAMP'), |
||
29 | 'updated_at' => DB::raw('CURRENT_TIMESTAMP'), |
||
30 | )); |
||
31 | } |
||
32 | |||
44 |