Skip to content

Commit

Permalink
Add new columns (full_name, authorization_code, payment_key, transact…
Browse files Browse the repository at this point in the history
…ion_key, deposit_date)
  • Loading branch information
sebacarrasco93 committed Dec 15, 2021
1 parent f708b57 commit 21444cf
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddNewColumnsToTables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('payku_transactions', function (Blueprint $table) {
$table->string('full_name')->nullable();
});

Schema::table('payku_payments', function (Blueprint $table) {
$table->string('authorization_code')->nullable();
$table->string('payment_key')->nullable();
$table->string('transaction_key')->nullable();
$table->date('deposit_date')->nullable();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payku_payments');
}
}

0 comments on commit 21444cf

Please sign in to comment.