Skip to content
Snippets Groups Projects
2018_09_10_211659_create_deposits_table.php 814 B
Newer Older
  • Learn to ignore specific revisions
  • beardedwarrior's avatar
    beardedwarrior committed
    <?php
    
    use Illuminate\Support\Facades\Schema;
    use Illuminate\Database\Schema\Blueprint;
    use Illuminate\Database\Migrations\Migration;
    
    class CreateDepositsTable extends Migration
    {
        /**
         * Run the migrations.
         *
         * @return void
         */
        public function up()
        {
            Schema::create('deposits', function (Blueprint $table) {
                $table->increments('id');
                $table->string('payment_id');
                $table->string('amount');
    
                $table->dateTime('time_received');
    
    beardedwarrior's avatar
    beardedwarrior committed
                $table->string('tx_id');
                $table->unsignedInteger('block_received');
                $table->timestamps();
            });
        }
    
        /**
         * Reverse the migrations.
         *
         * @return void
         */
        public function down()
        {
            Schema::dropIfExists('deposits');
        }
    }