tambah function lelongan ujrah

This commit is contained in:
BTMS1
2023-11-28 09:21:54 +08:00
parent c0c6d00db5
commit afa1f4eb48
21 changed files with 2722 additions and 5 deletions
@@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddUjrahToSimulasisTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('simulasi', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
Schema::table('cawangan_simulasi', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
Schema::table('simulasibid', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('simulasi', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
Schema::table('cawangan_simulasi', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
Schema::table('simulasibid', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
}
}
@@ -0,0 +1,48 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddUjrahToLelongTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('lelong', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
Schema::table('cawangan_lelong', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
Schema::table('lelongbid', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('lelong', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
Schema::table('cawangan_lelong', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
Schema::table('lelongbid', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
}
}