Merged in afiqhamzah/feat/add-column-migration-checker (pull request #41)
Add column migration checker contd
This commit is contained in:
@@ -47,11 +47,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit1', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit1', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -60,11 +60,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit2', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit2', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -73,11 +73,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit3', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit3', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -86,11 +86,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit4', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit4', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -99,11 +99,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit5', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit5', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -112,11 +112,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit6', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit6', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -125,11 +125,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit7', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit7', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
|
||||
@@ -139,11 +139,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit8', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit8', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -152,11 +152,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit9', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit9', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -165,11 +165,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit10', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit10', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -178,11 +178,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit11', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit11', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
@@ -191,11 +191,11 @@ class AddColumnUjrahStokauditbackdate extends Migration
|
||||
$isUtGonePercentExist = Schema::connection($dbase)->hasColumn('stokaudit12', 'utgonepercent');
|
||||
$isUjrahExist = Schema::connection($dbase)->hasColumn('stokaudit12', 'ujrah');
|
||||
|
||||
if ($isUtGonePercentExist) {
|
||||
if (! $isUtGonePercentExist) {
|
||||
$table->decimal('utgonepercent', 9, 2);
|
||||
}
|
||||
|
||||
if ($isUjrahExist) {
|
||||
if (! $isUjrahExist) {
|
||||
$table->decimal('ujrah', 9, 2);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user