tests/database/migrations/2017_09_21_200000_create_profiles.php 1 location
|
@@ 6-19 (lines=14) @@
|
| 3 |
|
use Illuminate\Database\Schema\Blueprint; |
| 4 |
|
use Illuminate\Database\Migrations\Migration; |
| 5 |
|
|
| 6 |
|
class CreateProfiles extends Migration |
| 7 |
|
{ |
| 8 |
|
public function up() |
| 9 |
|
{ |
| 10 |
|
Schema::create('profiles', function (Blueprint $table) { |
| 11 |
|
$table->increments('id'); |
| 12 |
|
$table->unsignedInteger('author_id'); |
| 13 |
|
$table->timestamps(); |
| 14 |
|
|
| 15 |
|
$table->text('first_name'); |
| 16 |
|
$table->text('last_name'); |
| 17 |
|
}); |
| 18 |
|
} |
| 19 |
|
} |
| 20 |
|
|
tests/database/migrations/2018_06_03_202000_create_comments.php 1 location
|
@@ 6-20 (lines=15) @@
|
| 3 |
|
use Illuminate\Database\Schema\Blueprint; |
| 4 |
|
use Illuminate\Database\Migrations\Migration; |
| 5 |
|
|
| 6 |
|
class CreateComments extends Migration |
| 7 |
|
{ |
| 8 |
|
public function up() |
| 9 |
|
{ |
| 10 |
|
Schema::create('comments', function (Blueprint $table) { |
| 11 |
|
$table->increments('id'); |
| 12 |
|
$table->timestamps(); |
| 13 |
|
|
| 14 |
|
$table->unsignedInteger("commentable_id")->nullable(); |
| 15 |
|
$table->string("commentable_type")->nullable(); |
| 16 |
|
$table->text("description"); |
| 17 |
|
$table->string("subject"); |
| 18 |
|
}); |
| 19 |
|
} |
| 20 |
|
} |
| 21 |
|
|
tests/database/migrations/2018_06_03_202001_create_images.php 1 location
|
@@ 6-19 (lines=14) @@
|
| 3 |
|
use Illuminate\Database\Schema\Blueprint; |
| 4 |
|
use Illuminate\Database\Migrations\Migration; |
| 5 |
|
|
| 6 |
|
class CreateImages extends Migration |
| 7 |
|
{ |
| 8 |
|
public function up() |
| 9 |
|
{ |
| 10 |
|
Schema::create('images', function (Blueprint $table) { |
| 11 |
|
$table->increments('id'); |
| 12 |
|
$table->timestamps(); |
| 13 |
|
|
| 14 |
|
$table->unsignedInteger("imagable_id")->nullable(); |
| 15 |
|
$table->string("imagable_type")->nullable(); |
| 16 |
|
$table->text("path"); |
| 17 |
|
}); |
| 18 |
|
} |
| 19 |
|
} |
| 20 |
|
|