b445cf7003
Fixed a bug with the new payment changes Improved the payments table and changes
33 lines
697 B
PHP
33 lines
697 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class AddCurrencyCodeToPaymentsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('payments', function (Blueprint $table) {
|
|
$table->string('currency_code' , 3)->default('USD')->after('price');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('payments', function (Blueprint $table) {
|
|
$table->dropColumn('currency_code');
|
|
});
|
|
}
|
|
}
|