@@ 10-38 (lines=29) @@ | ||
7 | /** |
|
8 | * Class CreateUserInvitationsTable. |
|
9 | */ |
|
10 | class CreateUserInvitationsTable extends Migration |
|
11 | { |
|
12 | /** |
|
13 | * Run the migrations. |
|
14 | * |
|
15 | * @return void |
|
16 | */ |
|
17 | public function up() |
|
18 | { |
|
19 | Schema::create('user_invitations', function (Blueprint $table) { |
|
20 | $table->increments('id'); |
|
21 | $table->string('email')->unique(); |
|
22 | $table->string('state'); |
|
23 | $table->string('token'); |
|
24 | $table->integer('user_id')->unsigned()->nullable(); |
|
25 | $table->timestamps(); |
|
26 | }); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * Reverse the migrations. |
|
31 | * |
|
32 | * @return void |
|
33 | */ |
|
34 | public function down() |
|
35 | { |
|
36 | Schema::dropIfExists('user_invitations'); |
|
37 | } |
|
38 | } |
|
39 |
@@ 10-38 (lines=29) @@ | ||
7 | /** |
|
8 | * Class CreateProgressBatchesTable. |
|
9 | */ |
|
10 | class CreateProgressBatchesTable extends Migration |
|
11 | { |
|
12 | /** |
|
13 | * Run the migrations. |
|
14 | * |
|
15 | * @return void |
|
16 | */ |
|
17 | public function up() |
|
18 | { |
|
19 | Schema::create('progress_batches', function (Blueprint $table) { |
|
20 | $table->increments('id'); |
|
21 | $table->integer('accomplished')->unsigned()->nullable(); |
|
22 | $table->integer('incidences')->unsigned()->nullable(); |
|
23 | $table->string('state'); |
|
24 | $table->string('type'); |
|
25 | $table->timestamps(); |
|
26 | }); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * Reverse the migrations. |
|
31 | * |
|
32 | * @return void |
|
33 | */ |
|
34 | public function down() |
|
35 | { |
|
36 | Schema::dropIfExists('progress_batches'); |
|
37 | } |
|
38 | } |
|
39 |