| @@ 16-47 (lines=32) @@ | ||
| 13 | use Illuminate\Database\Schema\Blueprint; |
|
| 14 | use Illuminate\Database\Migrations\Migration; |
|
| 15 | ||
| 16 | class CreateExpenseCategoryTable extends Migration |
|
| 17 | { |
|
| 18 | /** |
|
| 19 | * Run the migrations. |
|
| 20 | * |
|
| 21 | * @return void |
|
| 22 | */ |
|
| 23 | public function up() |
|
| 24 | { |
|
| 25 | Schema::create('expense_category', function (Blueprint $table) { |
|
| 26 | $table->bigIncrements('id'); |
|
| 27 | $table->string('category'); |
|
| 28 | $table->text('description')->nullable(); |
|
| 29 | $table->date('date'); |
|
| 30 | ||
| 31 | ||
| 32 | ||
| 33 | ||
| 34 | $table->timestamps(); |
|
| 35 | }); |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Reverse the migrations. |
|
| 40 | * |
|
| 41 | * @return void |
|
| 42 | */ |
|
| 43 | public function down() |
|
| 44 | { |
|
| 45 | Schema::dropIfExists('expense_category'); |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||
| @@ 16-47 (lines=32) @@ | ||
| 13 | use Illuminate\Database\Schema\Blueprint; |
|
| 14 | use Illuminate\Database\Migrations\Migration; |
|
| 15 | ||
| 16 | class CreateIncomeCategoryTable extends Migration |
|
| 17 | { |
|
| 18 | /** |
|
| 19 | * Run the migrations. |
|
| 20 | * |
|
| 21 | * @return void |
|
| 22 | */ |
|
| 23 | public function up() |
|
| 24 | { |
|
| 25 | Schema::create('income_category', function (Blueprint $table) { |
|
| 26 | $table->bigIncrements('id'); |
|
| 27 | $table->string('category'); |
|
| 28 | $table->text('description')->nullable(); |
|
| 29 | $table->date('date'); |
|
| 30 | ||
| 31 | ||
| 32 | ||
| 33 | ||
| 34 | $table->timestamps(); |
|
| 35 | }); |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Reverse the migrations. |
|
| 40 | * |
|
| 41 | * @return void |
|
| 42 | */ |
|
| 43 | public function down() |
|
| 44 | { |
|
| 45 | Schema::dropIfExists('income_category'); |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||