PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
Refund
/
Database
/
Migrations
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateRefundReasonsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('refund_reasons', function (Blueprint $table) { $table->increments('id'); $table->string('name', 50)->unique(); $table->string('status', 20)->default('Pending')->comment('Active/Inactive/Pending'); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->useCurrentOnUpdate()->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('refund_reasons'); } }
[-] 2022_02_23_032815_add_foreign_keys_to_refunds_table.php
[edit]
[-] 2022_02_23_032820_add_foreign_keys_to_refund_processes_table.php
[edit]
[+]
..
[-] 2022_02_23_032713_create_refunds_table.php
[edit]
[-] 2022_02_23_032454_create_refund_reasons_table.php
[edit]
[-] 2022_02_23_032814_create_refund_processes_table.php
[edit]