Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePaykuTransactionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('payku_transactions', function (Blueprint $table) {
|
||||
$table->string('id')->index()->unique(); // transaction_id: 1, 2, 3
|
||||
$table->string('status')->nullable(); // ['success', '...']
|
||||
$table->string('order')->nullable()->unique(); // before: order: trx8956fbcc9e5f4ba62
|
||||
$table->string('email')->nullable();
|
||||
$table->string('subject')->nullable();
|
||||
$table->text('url')->nullable();
|
||||
$table->unsignedInteger('amount')->nullable();
|
||||
$table->datetime('notified_at')->nullable();
|
||||
$table->timestamp('created_at')->nullable();
|
||||
$table->timestamp('updated_at')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('payku_transactions');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePaykuPaymentsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('payku_payments', function (Blueprint $table) {
|
||||
$table->string('transaction_id')->unique();
|
||||
$table->date('start');
|
||||
$table->date('end');
|
||||
$table->string('media');
|
||||
$table->string('verification_key');
|
||||
$table->string('authorization_code');
|
||||
$table->unsignedInteger('last_4_digits')->nullable();
|
||||
$table->string('installments')->nullable();
|
||||
$table->string('card_type')->nullable();
|
||||
$table->string('additional_parameters')->nullable();
|
||||
$table->string('currency');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
$table->timestamp('updated_at')->nullable();
|
||||
|
||||
$table->foreign('transaction_id')->references('id')->on('payku_transactions');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('payku_payments');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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('payment_key')->nullable();
|
||||
$table->string('transaction_key')->nullable();
|
||||
$table->datetime('deposit_date')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('payku_payments');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user