separation of tawarruq and onepercent
This commit is contained in:
@@ -62,7 +62,7 @@ class AddOnepercentToGadaiTable extends Migration
|
||||
$db_connection = $this->getActiveDB();
|
||||
|
||||
foreach($db_connection as $dbase){
|
||||
if (Schema::connection('mysql7')->hasColumn('ujrah', 'onepercent')){
|
||||
if (Schema::connection('mysql7')->hasColumn('kadarujrah', 'ujrah', 'onepercent','margin_semasa','tagbaru')){
|
||||
Schema::connection($dbase)->table('gadai', function (Blueprint $table) {
|
||||
$table->dropColumn(['kadarujrah', 'ujrah', 'onepercent','margin_semasa','tagbaru']);
|
||||
});
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddVersionToArrahnMasterDbTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$value = 'v1';
|
||||
|
||||
Schema::table('arrahn_master_db', function (Blueprint $table) use($value) {
|
||||
$table->char('version', 4)->default($value);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql7')->table('arrahn_master_db', function (Blueprint $table) {
|
||||
$table->dropColumn(['version']);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user