osb/database/migrations/2018_06_18_114830_currency_change_threecode.php
2018-06-18 21:51:20 +10:00

32 lines
667 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CurrencyChangeThreecode extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('ab_currency', function (Blueprint $table) {
$table->renameColumn('three_digit','iso_code');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('ab_currency', function (Blueprint $table) {
$table->renameColumn('iso_code','three_digit');
});
}
}