We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 8-49 (lines=42) @@ | ||
| 5 | use Illuminate\Database\Schema\Blueprint; |
|
| 6 | use Illuminate\Database\Migrations\Migration; |
|
| 7 | ||
| 8 | class CreateBloodTypesTable extends Migration |
|
| 9 | { |
|
| 10 | /** |
|
| 11 | * @var \Illuminate\Database\Schema\Builder |
|
| 12 | */ |
|
| 13 | protected $schema; |
|
| 14 | ||
| 15 | /** |
|
| 16 | * Migration constructor. |
|
| 17 | */ |
|
| 18 | public function __construct() |
|
| 19 | { |
|
| 20 | $this->schema = app('db')->connection()->getSchemaBuilder(); |
|
| 21 | } |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Run the migrations. |
|
| 25 | * |
|
| 26 | * @return void |
|
| 27 | */ |
|
| 28 | public function up() |
|
| 29 | { |
|
| 30 | $this->schema->create( |
|
| 31 | 'blood_types', function (Blueprint $table) { |
|
| 32 | $table->uuid('id')->unique()->primary(); |
|
| 33 | $table->string('description', 20); |
|
| 34 | $table->string('code', 10); |
|
| 35 | $table->timestamps(); |
|
| 36 | } |
|
| 37 | ); |
|
| 38 | } |
|
| 39 | ||
| 40 | /** |
|
| 41 | * Reverse the migrations. |
|
| 42 | * |
|
| 43 | * @return void |
|
| 44 | */ |
|
| 45 | public function down() |
|
| 46 | { |
|
| 47 | $this->schema->drop('blood_types'); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| @@ 8-53 (lines=46) @@ | ||
| 5 | use Illuminate\Database\Schema\Blueprint; |
|
| 6 | use Illuminate\Database\Migrations\Migration; |
|
| 7 | ||
| 8 | class CreateCommentsTable extends Migration |
|
| 9 | { |
|
| 10 | /** |
|
| 11 | * @var \Illuminate\Database\Schema\Builder |
|
| 12 | */ |
|
| 13 | protected $schema; |
|
| 14 | ||
| 15 | /** |
|
| 16 | * Migration constructor. |
|
| 17 | */ |
|
| 18 | public function __construct() |
|
| 19 | { |
|
| 20 | $this->schema = app('db')->connection()->getSchemaBuilder(); |
|
| 21 | } |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Run the migrations. |
|
| 25 | * |
|
| 26 | * @return void |
|
| 27 | */ |
|
| 28 | public function up() |
|
| 29 | { |
|
| 30 | $this->schema->create( |
|
| 31 | 'comments', function (Blueprint $table) { |
|
| 32 | $table->uuid('id')->unique()->primary(); |
|
| 33 | $table->string('comment'); |
|
| 34 | $table->uuid('campaign_id'); |
|
| 35 | $table->uuid('user_id'); |
|
| 36 | $table->timestamps(); |
|
| 37 | ||
| 38 | // $table->foreign('user_id')->references('id')->on('users') |
|
| 39 | // ->onDelete('cascade'); |
|
| 40 | } |
|
| 41 | ); |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * Reverse the migrations. |
|
| 46 | * |
|
| 47 | * @return void |
|
| 48 | */ |
|
| 49 | public function down() |
|
| 50 | { |
|
| 51 | $this->schema->drop('comments'); |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||
| @@ 8-49 (lines=42) @@ | ||
| 5 | use Illuminate\Database\Schema\Blueprint; |
|
| 6 | use Illuminate\Database\Migrations\Migration; |
|
| 7 | ||
| 8 | class CreateInvitesTable extends Migration |
|
| 9 | { |
|
| 10 | /** |
|
| 11 | * @var \Illuminate\Database\Schema\Builder |
|
| 12 | */ |
|
| 13 | protected $schema; |
|
| 14 | ||
| 15 | /** |
|
| 16 | * Migration constructor. |
|
| 17 | */ |
|
| 18 | public function __construct() |
|
| 19 | { |
|
| 20 | $this->schema = app('db')->connection()->getSchemaBuilder(); |
|
| 21 | } |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Run the migrations. |
|
| 25 | * |
|
| 26 | * @return void |
|
| 27 | */ |
|
| 28 | public function up() |
|
| 29 | { |
|
| 30 | $this->schema->create( |
|
| 31 | 'invites', function (Blueprint $table) { |
|
| 32 | $table->increments('id'); |
|
| 33 | $table->string('invite_code')->unique(); |
|
| 34 | $table->uuid('user_id'); |
|
| 35 | $table->timestamps(); |
|
| 36 | } |
|
| 37 | ); |
|
| 38 | } |
|
| 39 | ||
| 40 | /** |
|
| 41 | * Reverse the migrations. |
|
| 42 | * |
|
| 43 | * @return void |
|
| 44 | */ |
|
| 45 | public function down() |
|
| 46 | { |
|
| 47 | $this->schema->drop('invites'); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| @@ 8-48 (lines=41) @@ | ||
| 5 | use Illuminate\Database\Schema\Blueprint; |
|
| 6 | use Illuminate\Database\Migrations\Migration; |
|
| 7 | ||
| 8 | class CreatePasswordResetsTable extends Migration |
|
| 9 | { |
|
| 10 | /** |
|
| 11 | * @var \Illuminate\Database\Schema\Builder |
|
| 12 | */ |
|
| 13 | protected $schema; |
|
| 14 | ||
| 15 | /** |
|
| 16 | * Migration constructor. |
|
| 17 | */ |
|
| 18 | public function __construct() |
|
| 19 | { |
|
| 20 | $this->schema = app('db')->connection()->getSchemaBuilder(); |
|
| 21 | } |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Run the migrations. |
|
| 25 | * |
|
| 26 | * @return void |
|
| 27 | */ |
|
| 28 | public function up() |
|
| 29 | { |
|
| 30 | $this->schema->create( |
|
| 31 | 'password_resets', function (Blueprint $table) { |
|
| 32 | $table->string('email')->index(); |
|
| 33 | $table->string('token'); |
|
| 34 | $table->timestamp('created_at')->nullable(); |
|
| 35 | } |
|
| 36 | ); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * Reverse the migrations. |
|
| 41 | * |
|
| 42 | * @return void |
|
| 43 | */ |
|
| 44 | public function down() |
|
| 45 | { |
|
| 46 | $this->schema->drop('password_resets'); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||