Bugfix/list clickup issue (#5)
Reviewed-on: #5 Co-authored-by: ISMAIL MASSERAN <ismail@koppkb.com> Co-committed-by: ISMAIL MASSERAN <ismail@koppkb.com>
This commit was merged in pull request #5.
This commit is contained in:
@@ -24,10 +24,10 @@ class CreateUsersTable extends Migration
|
||||
$table->string('alamat')->nullable();
|
||||
$table->string('notelpejabat')->nullable();
|
||||
$table->string('notelbimbit')->nullable();
|
||||
$table->string('note')->nullable(); //operasi
|
||||
$table->string('status')->nullable(); //set
|
||||
$table->string('note')->nullable(); // operasi
|
||||
$table->string('status')->nullable(); // set
|
||||
$table->datetime('t_daftar')->nullable();
|
||||
$table->integer('online')->nullable(); //set
|
||||
$table->integer('online')->nullable(); // set
|
||||
$table->integer('register_agree')->nullable();
|
||||
$table->string('email')->unique();
|
||||
$table->string('token')->nullable();
|
||||
@@ -36,15 +36,15 @@ class CreateUsersTable extends Migration
|
||||
$table->string('password');
|
||||
$table->datetime('disahkan_pada')->nullable();
|
||||
$table->integer('disahkan_oleh')->nullable();
|
||||
$table->string('user_type')->nullable(); //set 1,2
|
||||
$table->string('user_type')->nullable(); // set 1,2
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('loguser', function (Blueprint $table) {
|
||||
$table->bigIncrements('recno');
|
||||
$table->integer('user_id')->nullable(); //set
|
||||
$table->datetime('date')->nullable();
|
||||
$table->integer('user_id')->nullable(); // set
|
||||
$table->datetime('date')->nullable();
|
||||
$table->string('username')->nullable();
|
||||
$table->string('nama_user')->nullable();
|
||||
$table->string('norujukan')->nullable();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Spatie\Permission\PermissionRegistrar;
|
||||
|
||||
class CreatePermissionTables extends Migration
|
||||
@@ -27,12 +27,12 @@ class CreatePermissionTables extends Migration
|
||||
|
||||
Schema::create($tableNames['permissions'], function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('name');
|
||||
$table->string('name');
|
||||
$table->string('description'); // For MySQL 8.0 use string('name', 125);
|
||||
$table->string('guard_name'); // For MySQL 8.0 use string('guard_name', 125);
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique(['name','description','guard_name']);
|
||||
$table->unique(['name', 'description', 'guard_name']);
|
||||
});
|
||||
|
||||
Schema::create($tableNames['roles'], function (Blueprint $table) use ($teams, $columnNames) {
|
||||
|
||||
@@ -16,20 +16,20 @@ class CreateCawangansTable extends Migration
|
||||
Schema::create('cawangan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('caw_dbname')->nullable();
|
||||
$table->string('caw_dbuser')->nullable();
|
||||
$table->string('caw_dbpass')->nullable();
|
||||
$table->string('caw_ip')->nullable();
|
||||
$table->string('caw_name')->nullable();
|
||||
$table->string('caw_code')->nullable();
|
||||
$table->string('nama_bank')->nullable();
|
||||
$table->string('bank_acc')->nullable();
|
||||
$table->string('bank_acc_no')->nullable();
|
||||
$table->string('alamat1')->nullable();
|
||||
$table->string('alamat2')->nullable();
|
||||
$table->string('notel')->nullable();
|
||||
$table->string('nofaks')->nullable();
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('pkb_jmc')->nullable();
|
||||
$table->string('caw_dbuser')->nullable();
|
||||
$table->string('caw_dbpass')->nullable();
|
||||
$table->string('caw_ip')->nullable();
|
||||
$table->string('caw_name')->nullable();
|
||||
$table->string('caw_code')->nullable();
|
||||
$table->string('nama_bank')->nullable();
|
||||
$table->string('bank_acc')->nullable();
|
||||
$table->string('bank_acc_no')->nullable();
|
||||
$table->string('alamat1')->nullable();
|
||||
$table->string('alamat2')->nullable();
|
||||
$table->string('notel')->nullable();
|
||||
$table->string('nofaks')->nullable();
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('pkb_jmc')->nullable();
|
||||
$table->longText('para2')->nullable();
|
||||
$table->longText('para3')->nullable();
|
||||
$table->longText('parabaki')->nullable();
|
||||
@@ -41,74 +41,73 @@ class CreateCawangansTable extends Migration
|
||||
|
||||
Schema::create('customer', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('ahli')->nullable();
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->integer('nosiri')->nullable();
|
||||
$table->date('tarikhdaftar')->nullable();
|
||||
$table->string('nopelanggan');
|
||||
$table->string('kplama')->nullable();
|
||||
$table->string('kpbaru')->nullable();
|
||||
$table->string('nama')->nullable();
|
||||
$table->date('t_lahir')->nullable();
|
||||
$table->string('jantina')->nullable();
|
||||
$table->string('alamat1')->nullable();
|
||||
$table->string('alamat2')->nullable();
|
||||
$table->string('alamat3')->nullable();
|
||||
$table->string('alamat4')->nullable();
|
||||
$table->string('poskod')->nullable();
|
||||
$table->integer('koddaerah')->nullable();
|
||||
$table->string('kodnegeri')->nullable();
|
||||
$table->string('telefon')->nullable();
|
||||
$table->string('ahli')->nullable();
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->integer('nosiri')->nullable();
|
||||
$table->date('tarikhdaftar')->nullable();
|
||||
$table->string('nopelanggan');
|
||||
$table->string('kplama')->nullable();
|
||||
$table->string('kpbaru')->nullable();
|
||||
$table->string('nama')->nullable();
|
||||
$table->date('t_lahir')->nullable();
|
||||
$table->string('jantina')->nullable();
|
||||
$table->string('alamat1')->nullable();
|
||||
$table->string('alamat2')->nullable();
|
||||
$table->string('alamat3')->nullable();
|
||||
$table->string('alamat4')->nullable();
|
||||
$table->string('poskod')->nullable();
|
||||
$table->integer('koddaerah')->nullable();
|
||||
$table->string('kodnegeri')->nullable();
|
||||
$table->string('telefon')->nullable();
|
||||
$table->decimal('jumpinjaman', $precision = 9, $scale = 2)->nullable();
|
||||
$table->date('t_gadai')->nullable();
|
||||
$table->date('t_gadai')->nullable();
|
||||
$table->decimal('pinjamhari', $precision = 9, $scale = 2)->nullable();
|
||||
$table->string('bumiputra')->nullable();
|
||||
$table->string('warganegara')->nullable();
|
||||
$table->string('bangsa')->nullable();
|
||||
$table->string('kodkerja')->nullable();
|
||||
$table->string('kodugama')->nullable();
|
||||
$table->string('kodstatus')->nullable();
|
||||
$table->string('kodbank')->nullable();
|
||||
$table->string('noakaun')->nullable();
|
||||
$table->string('nota')->nullable();
|
||||
$table->string('teller')->nullable();
|
||||
$table->string('pelulus')->nullable();
|
||||
$table->date('t_ubah')->nullable();
|
||||
$table->time('m_ubah')->nullable();
|
||||
$table->string('aktif')->nullable();
|
||||
$table->string('bumiputra')->nullable();
|
||||
$table->string('warganegara')->nullable();
|
||||
$table->string('bangsa')->nullable();
|
||||
$table->string('kodkerja')->nullable();
|
||||
$table->string('kodugama')->nullable();
|
||||
$table->string('kodstatus')->nullable();
|
||||
$table->string('kodbank')->nullable();
|
||||
$table->string('noakaun')->nullable();
|
||||
$table->string('nota')->nullable();
|
||||
$table->string('teller')->nullable();
|
||||
$table->string('pelulus')->nullable();
|
||||
$table->date('t_ubah')->nullable();
|
||||
$table->time('m_ubah')->nullable();
|
||||
$table->string('aktif')->nullable();
|
||||
$table->decimal('yuranahli', $precision = 5, $scale = 2)->nullable();
|
||||
$table->string('nopelangganlama')->nullable();
|
||||
$table->string('tujuangadai')->nullable();
|
||||
$table->string('kodkerjabaru')->nullable();
|
||||
$table->string('tagperingatan')->nullable();
|
||||
$table->string('namateller')->nullable();
|
||||
$table->integer('kumpulan')->nullable();
|
||||
$table->string('telefon2')->nullable();
|
||||
$table->string('tagpelanggan')->nullable();
|
||||
$table->string('nopelangganlama')->nullable();
|
||||
$table->string('tujuangadai')->nullable();
|
||||
$table->string('kodkerjabaru')->nullable();
|
||||
$table->string('tagperingatan')->nullable();
|
||||
$table->string('namateller')->nullable();
|
||||
$table->integer('kumpulan')->nullable();
|
||||
$table->string('telefon2')->nullable();
|
||||
$table->string('tagpelanggan')->nullable();
|
||||
});
|
||||
|
||||
|
||||
Schema::create('gadai', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->string('norujukan');
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->string('norujukan');
|
||||
$table->string('prkod')->nullable();
|
||||
$table->string('nopelanggan');
|
||||
$table->string('nokp')->nullable();
|
||||
$table->date('t_gadai');
|
||||
$table->time('masa')->nullable();
|
||||
$table->integer('sirig')->nullable()->default(0);
|
||||
$table->decimal('nilaimarhun', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('n_marhuns', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('berat', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('pinjaman', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('telahbayar', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('upahtelahbyr', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('cajtelahbyr', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('ansuran', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('ansupah', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('kadarupah', $precision = 5, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('tempoh', $precision = 10, $scale = 2)->nullable()->default(0.00);
|
||||
$table->string('nopelanggan');
|
||||
$table->string('nokp')->nullable();
|
||||
$table->date('t_gadai');
|
||||
$table->time('masa')->nullable();
|
||||
$table->integer('sirig')->nullable()->default(0);
|
||||
$table->decimal('nilaimarhun', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('n_marhuns', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('berat', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('pinjaman', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('telahbayar', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('upahtelahbyr', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('cajtelahbyr', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('ansuran', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('ansupah', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('kadarupah', $precision = 5, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('tempoh', $precision = 10, $scale = 2)->nullable()->default(0.00);
|
||||
$table->date('t_lanjut1')->nullable();
|
||||
$table->date('t_lanjut2')->nullable();
|
||||
$table->date('t_matang')->nullable();
|
||||
@@ -121,7 +120,7 @@ class CreateCawangansTable extends Migration
|
||||
$table->date('t_hapus')->nullable();
|
||||
$table->string('sttebus');
|
||||
$table->string('terima')->nullable();
|
||||
$table->integer('cetak')->nullable()->default(0);;
|
||||
$table->integer('cetak')->nullable()->default(0);
|
||||
$table->string('tncek')->nullable();
|
||||
$table->string('nocek')->nullable();
|
||||
$table->string('bkcode')->nullable();
|
||||
@@ -135,8 +134,8 @@ class CreateCawangansTable extends Migration
|
||||
$table->time('canceltime')->nullable();
|
||||
$table->string('f_lulus')->nullable();
|
||||
$table->string('tag')->nullable();
|
||||
$table->decimal('jbg', $precision = 9, $scale = 2)->nullable()->default(0.00);;
|
||||
$table->decimal('bakipjm', $precision = 7, $scale = 2)->nullable()->default(0.00);;
|
||||
$table->decimal('jbg', $precision = 9, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('bakipjm', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('bakiupah', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('cajlain', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->string('marhun')->nullable();
|
||||
@@ -151,7 +150,7 @@ class CreateCawangansTable extends Migration
|
||||
$table->decimal('ansupahakhir', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('jumupahaz', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->decimal('tunggakan', $precision = 7, $scale = 2)->nullable()->default(0.00);
|
||||
$table->date('t_update')->nullable();;
|
||||
$table->date('t_update')->nullable();
|
||||
$table->string('jantina')->nullable();
|
||||
$table->string('bangsa')->nullable();
|
||||
$table->integer('sirit')->nullable()->default(0);
|
||||
@@ -223,9 +222,9 @@ class CreateCawangansTable extends Migration
|
||||
|
||||
Schema::create('gadaimarhun', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->string('norujukan');
|
||||
$table->date('t_gadai')->nullable();;
|
||||
$table->date('t_gadai')->nullable();
|
||||
$table->decimal('bil', $precision = 3, $scale = 2);
|
||||
$table->string('marhun');
|
||||
$table->string('nota');
|
||||
|
||||
@@ -44,7 +44,7 @@ class CreateSimulasisTable extends Migration
|
||||
$table->foreign('caw_id')
|
||||
->references('id')->on('cawangan')
|
||||
->onDelete('cascade');
|
||||
|
||||
|
||||
$table->foreign('simulasi_id')
|
||||
->references('id')->on('simulasi')
|
||||
->onDelete('cascade');
|
||||
@@ -83,7 +83,7 @@ class CreateSimulasisTable extends Migration
|
||||
$table->foreign('caw_id')
|
||||
->references('id')->on('cawangan')
|
||||
->onDelete('cascade');
|
||||
|
||||
|
||||
$table->foreign('simulasi_id')
|
||||
->references('id')->on('simulasi')
|
||||
->onDelete('cascade');
|
||||
@@ -176,7 +176,6 @@ class CreateSimulasisTable extends Migration
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -43,10 +43,10 @@ class CreateLelongsTable extends Migration
|
||||
$table->string('harga_emas_asas');
|
||||
$table->string('jbg');
|
||||
$table->integer('cajlelong');
|
||||
$table->integer('sts_lelong')->default(0); //1= start, 2 = jana pemenang, 3 = senarai pemenang
|
||||
$table->integer('sts_lelong')->default(0); // 1= start, 2 = jana pemenang, 3 = senarai pemenang
|
||||
$table->integer('fasa')->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
});
|
||||
|
||||
Schema::create('cawangan_lelong', function (Blueprint $table) {
|
||||
@@ -72,7 +72,7 @@ class CreateLelongsTable extends Migration
|
||||
$table->foreign('caw_id')
|
||||
->references('id')->on('cawangan')
|
||||
->onDelete('cascade');
|
||||
|
||||
|
||||
$table->foreign('lelong_id')
|
||||
->references('id')->on('lelong')
|
||||
->onDelete('cascade');
|
||||
@@ -127,7 +127,7 @@ class CreateLelongsTable extends Migration
|
||||
$table->unsignedBigInteger('lelongbid_id')->unsigned();
|
||||
$table->decimal('bil', $precision = 3, $scale = 0);
|
||||
$table->string('old_marhun');
|
||||
$table->string('marhun');
|
||||
$table->string('marhun');
|
||||
$table->string('nota')->nullable();
|
||||
$table->string('old_karat');
|
||||
$table->string('karat');
|
||||
@@ -178,7 +178,7 @@ class CreateLelongsTable extends Migration
|
||||
Schema::create('lelong_tebus', function (Blueprint $table) {
|
||||
$table->bigIncrements('recno');
|
||||
$table->datetime('tarikh')->nullable();
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->string('teller')->nullable();
|
||||
$table->string('norujukan')->nullable();
|
||||
$table->string('batch_no')->nullable();
|
||||
@@ -196,15 +196,15 @@ class CreateLelongsTable extends Migration
|
||||
|
||||
Schema::create('tetapan', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->date('tetap_tarikh_lelong')->nullable();
|
||||
$table->date('tetap_tarikh_lelong')->nullable();
|
||||
$table->string('kali')->nullable();
|
||||
$table->integer('cajlelong')->nullable();
|
||||
$table->timestamps();
|
||||
$table->longText('para2')->nullable();
|
||||
$table->longText('para3')->nullable();
|
||||
$table->longText('parabaki')->nullable();
|
||||
$table->longText('parabaki2')->nullable();
|
||||
$table->longText('para2blast')->nullable();
|
||||
$table->longText('para2')->nullable();
|
||||
$table->longText('para3')->nullable();
|
||||
$table->longText('parabaki')->nullable();
|
||||
$table->longText('parabaki2')->nullable();
|
||||
$table->longText('para2blast')->nullable();
|
||||
$table->longText('para3blast')->nullable();
|
||||
|
||||
// $table->foreign('norujukan')
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateFileTable extends Migration
|
||||
{
|
||||
@@ -28,7 +28,7 @@ class CreateFileTable extends Migration
|
||||
});
|
||||
|
||||
// once the table is created use a raw query to ALTER it and add the MEDIUMBLOB
|
||||
DB::statement("ALTER TABLE file ADD filename LONGBLOB");
|
||||
DB::statement('ALTER TABLE file ADD filename LONGBLOB');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,7 @@ class CreateCartsTable extends Migration
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
|
||||
$table->foreign('lelongbid_id')
|
||||
->references('id')->on('lelongbid')
|
||||
->onDelete('cascade');
|
||||
|
||||
@@ -23,13 +23,12 @@ class CreateLelongbidderTable extends Migration
|
||||
$table->string('notelbimbit');
|
||||
$table->decimal('nilaimarhun');
|
||||
$table->decimal('cajlelong');
|
||||
$table->integer('status_bidder')->nullable(); //1 = win
|
||||
$table->integer('status_bidder')->nullable(); // 1 = win
|
||||
$table->integer('payment_id')->nullable();
|
||||
$table->integer('status_payment')->nullable(); // 1=paid, 2=memerlukan pengesahan operasi (CDM)
|
||||
$table->datetime('masa_bidaan');
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
@@ -21,14 +21,14 @@ class CreatePaymentTable extends Migration
|
||||
$table->string('invoice_no')->nullable();
|
||||
$table->decimal('total_invoice', $precision = 11, $scale = 2);
|
||||
$table->string('invoice_type'); // 1 = fee , 2 = bid
|
||||
$table->string('status')->nullable(); //status => 1 = paid , 2 = pending
|
||||
$table->string('status')->nullable(); // status => 1 = paid , 2 = pending
|
||||
$table->string('opencash')->nullable()->default(0);
|
||||
$table->timestamp('paid_at')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelong_id')
|
||||
->references('id')->on('lelong')
|
||||
@@ -45,7 +45,7 @@ class CreatePaymentTable extends Migration
|
||||
$table->string('billplz_id');
|
||||
$table->decimal('total_payment', $precision = 11, $scale = 2);
|
||||
$table->string('resit_type'); // 1 = fee , 2 = bid
|
||||
$table->string('status')->nullable(); //status => 1 = paid , 2 = pending
|
||||
$table->string('status')->nullable(); // status => 1 = paid , 2 = pending
|
||||
$table->longText('response');
|
||||
$table->timestamp('paid_at')->nullable();
|
||||
$table->timestamps();
|
||||
@@ -59,7 +59,7 @@ class CreatePaymentTable extends Migration
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelong_id')
|
||||
->references('id')->on('lelong')
|
||||
->references('id')->on('lelong')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
|
||||
@@ -76,8 +76,8 @@ class CreatePaymentTable extends Migration
|
||||
$table->string('bank_acc_no_pembeli')->nullable();
|
||||
$table->string('nama_bank_acc_caw')->nullable();
|
||||
$table->string('bank_no_acc_caw')->nullable();
|
||||
$table->integer('status_payment_opt')->nullable(); //1=kaunter,2=online,3=CDM
|
||||
$table->integer('status'); //1 = fee RM10 , 2 = paybidifwin
|
||||
$table->integer('status_payment_opt')->nullable(); // 1=kaunter,2=online,3=CDM
|
||||
$table->integer('status'); // 1 = fee RM10 , 2 = paybidifwin
|
||||
$table->string('remark');
|
||||
$table->integer('1sen')->nullable();
|
||||
$table->integer('5sen')->nullable();
|
||||
@@ -98,20 +98,20 @@ class CreatePaymentTable extends Migration
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('resit_id')
|
||||
->references('id')->on('resit')
|
||||
->onDelete('cascade');
|
||||
->references('id')->on('resit')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelong_id')
|
||||
->references('id')->on('lelong')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelongbid_id')
|
||||
->references('id')->on('lelongbid')
|
||||
->onDelete('cascade');
|
||||
->references('id')->on('lelongbid')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
|
||||
Schema::create('paydenokaunter', function (Blueprint $table) {
|
||||
@@ -119,9 +119,9 @@ class CreatePaymentTable extends Migration
|
||||
$table->unsignedBigInteger('user_id')->unsigned();
|
||||
$table->unsignedBigInteger('lelong_id')->unsigned();
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->integer('status_payment_opt')->nullable(); //1=kaunter,2=online,3=CDM
|
||||
$table->integer('status_payment_opt')->nullable(); // 1=kaunter,2=online,3=CDM
|
||||
$table->integer('resit_id');
|
||||
$table->integer('status'); //1 = fee RM10 , 2 = paybidifwin
|
||||
$table->integer('status'); // 1 = fee RM10 , 2 = paybidifwin
|
||||
$table->string('remark');
|
||||
$table->integer('1sen')->nullable();
|
||||
$table->integer('5sen')->nullable();
|
||||
@@ -142,8 +142,8 @@ class CreatePaymentTable extends Migration
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('lelong_id')
|
||||
->references('id')->on('lelong')
|
||||
|
||||
@@ -23,15 +23,14 @@ class CreatePengesahanTable extends Migration
|
||||
$table->datetime('disahkan_pada')->nullable();
|
||||
$table->integer('diminta_oleh');
|
||||
$table->datetime('diminta_pada');
|
||||
$table->integer('status')->default(0); //1 = terima, 2 = tangguh lelong
|
||||
$table->integer('status_ubah')->default(0); //1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat, 6 = tangguh lelong pc, 7 = ubah marhun,8 = ubah mutu, berat dan marhun,9=ubah mutu dan marhun,10=ubah berat dan marhun
|
||||
$table->integer('status')->default(0); // 1 = terima, 2 = tangguh lelong
|
||||
$table->integer('status_ubah')->default(0); // 1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat, 6 = tangguh lelong pc, 7 = ubah marhun,8 = ubah mutu, berat dan marhun,9=ubah mutu dan marhun,10=ubah berat dan marhun
|
||||
$table->string('request_berat')->nullable();
|
||||
$table->string('request_karat')->nullable();
|
||||
$table->string('request_marhun')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
|
||||
Schema::create('scan_semak', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('kodcaw');
|
||||
@@ -71,8 +70,8 @@ class CreatePengesahanTable extends Migration
|
||||
$table->datetime('disahkan_pada')->nullable();
|
||||
$table->integer('diminta_oleh');
|
||||
$table->datetime('diminta_pada');
|
||||
$table->integer('status')->default(0); //1 = terima, 2 = tangguh lelong
|
||||
$table->integer('status_ubah')->default(0); //1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat, 6 = tangguh lelong pc, 7 = ubah marhun,8 = ubah mutu, berat dan marhun,9=ubah mutu dan marhun,10=ubah berat dan marhun
|
||||
$table->integer('status')->default(0); // 1 = terima, 2 = tangguh lelong
|
||||
$table->integer('status_ubah')->default(0); // 1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat, 6 = tangguh lelong pc, 7 = ubah marhun,8 = ubah mutu, berat dan marhun,9=ubah mutu dan marhun,10=ubah berat dan marhun
|
||||
$table->string('request_berat')->nullable();
|
||||
$table->string('request_karat')->nullable();
|
||||
$table->string('request_marhun')->nullable();
|
||||
|
||||
@@ -23,9 +23,9 @@ class CreateTangguhlelongTable extends Migration
|
||||
$table->datetime('tarikhtangguh')->nullable();
|
||||
$table->integer('ditangguh_oleh');
|
||||
$table->datetime('ditangguh_pada');
|
||||
$table->string('nota')->nullable();;
|
||||
$table->string('nota')->nullable();
|
||||
$table->timestamps();
|
||||
$table->integer('status')->nullable(); //new added
|
||||
$table->integer('status')->nullable(); // new added
|
||||
$table->string('file_type')->nullable();
|
||||
|
||||
// $table->foreign('lelong_id')
|
||||
@@ -39,7 +39,7 @@ class CreateTangguhlelongTable extends Migration
|
||||
});
|
||||
|
||||
// once the table is created use a raw query to ALTER it and add the MEDIUMBLOB
|
||||
DB::statement("ALTER TABLE tangguhlelong ADD filename LONGBLOB");
|
||||
DB::statement('ALTER TABLE tangguhlelong ADD filename LONGBLOB');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -28,16 +28,16 @@ class CreateFileresitTable extends Migration
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
// $table->foreign('payment_id')
|
||||
// ->references('id')->on('payment')
|
||||
// ->onDelete('cascade');
|
||||
});
|
||||
|
||||
// once the table is created use a raw query to ALTER it and add the MEDIUMBLOB
|
||||
DB::statement("ALTER TABLE fileresit ADD filename LONGBLOB");
|
||||
// once the table is created use a raw query to ALTER it and add the MEDIUMBLOB
|
||||
DB::statement('ALTER TABLE fileresit ADD filename LONGBLOB');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateFilemarhunTable extends Migration
|
||||
{
|
||||
@@ -24,7 +24,7 @@ class CreateFilemarhunTable extends Migration
|
||||
});
|
||||
|
||||
// once the table is created use a raw query to ALTER it and add the MEDIUMBLOB
|
||||
DB::statement("ALTER TABLE filemarhun ADD filename LONGBLOB");
|
||||
DB::statement('ALTER TABLE filemarhun ADD filename LONGBLOB');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class SeedSystemUser extends Migration
|
||||
{
|
||||
@@ -23,7 +22,7 @@ class SeedSystemUser extends Migration
|
||||
'nokp' => '9090909090009',
|
||||
'status' => 'active',
|
||||
't_daftar' => Carbon::now(),
|
||||
'user_type' => 1
|
||||
'user_type' => 1,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -34,6 +33,6 @@ class SeedSystemUser extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
Schema::dropIfExists('users');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ class CreateNotisTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
|
||||
|
||||
Schema::create('notis', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('tarikh_notis')->nullable();
|
||||
@@ -48,7 +48,7 @@ class CreateNotisTable extends Migration
|
||||
$table->foreign('caw_id')
|
||||
->references('id')->on('cawangan')
|
||||
->onDelete('cascade');
|
||||
|
||||
|
||||
$table->foreign('notis_id')
|
||||
->references('id')->on('notis')
|
||||
->onDelete('cascade');
|
||||
@@ -67,7 +67,7 @@ class CreateNotisTable extends Migration
|
||||
$table->foreign('caw_id')
|
||||
->references('id')->on('cawangan')
|
||||
->onDelete('cascade');
|
||||
|
||||
|
||||
$table->foreign('notis_id')
|
||||
->references('id')->on('notis')
|
||||
->onDelete('cascade');
|
||||
@@ -84,6 +84,6 @@ class CreateNotisTable extends Migration
|
||||
Schema::dropIfExists('notis');
|
||||
Schema::dropIfExists('notisbid');
|
||||
Schema::dropIfExists('cawangan_notis');
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,6 @@ class AddUjrahToSimulasisTable extends Migration
|
||||
Schema::table('simulasibid', function (Blueprint $table) {
|
||||
$table->dropColumn('tagujrah');
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class CreateLelongbidderTempTable extends Migration
|
||||
$table->string('notelbimbit');
|
||||
$table->decimal('nilaimarhun');
|
||||
$table->decimal('cajlelong');
|
||||
$table->integer('status_bidder')->nullable(); //1 = win
|
||||
$table->integer('status_bidder')->nullable(); // 1 = win
|
||||
$table->integer('payment_id')->nullable();
|
||||
$table->integer('status_payment')->nullable(); // 1=paid, 2=memerlukan pengesahan operasi (CDM)
|
||||
$table->datetime('masa_bidaan');
|
||||
|
||||
@@ -12,7 +12,7 @@ class MergeJurulelongRoleIntoOperasi extends Migration
|
||||
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable($this->backup)) {
|
||||
if (! Schema::hasTable($this->backup)) {
|
||||
Schema::create($this->backup, function (Blueprint $table) {
|
||||
$table->unsignedBigInteger('id')->primary();
|
||||
$table->longText('payload');
|
||||
@@ -25,9 +25,9 @@ class MergeJurulelongRoleIntoOperasi extends Migration
|
||||
foreach (DB::table($tables['roles'])->where('name', 'jurulelong')->get() as $role) {
|
||||
$target = DB::table($tables['roles'])->where('name', 'operasi')
|
||||
->where('guard_name', $role->guard_name)->first();
|
||||
$snapshot = ['role' => (array) $role, 'renamed' => !$target, 'rows' => [], 'added' => []];
|
||||
$snapshot = ['role' => (array) $role, 'renamed' => ! $target, 'rows' => [], 'added' => []];
|
||||
|
||||
if (!$target) {
|
||||
if (! $target) {
|
||||
DB::table($tables['roles'])->where('id', $role->id)->update(['name' => 'operasi']);
|
||||
} else {
|
||||
foreach (['model_has_roles', 'role_has_permissions'] as $pivot) {
|
||||
@@ -38,7 +38,7 @@ class MergeJurulelongRoleIntoOperasi extends Migration
|
||||
$snapshot['rows'][$pivot][] = $original;
|
||||
$replacement = $original;
|
||||
$replacement[$key] = $target->id;
|
||||
if (!DB::table($tables[$pivot])->where($replacement)->exists()) {
|
||||
if (! DB::table($tables[$pivot])->where($replacement)->exists()) {
|
||||
DB::table($tables[$pivot])->insert($replacement);
|
||||
$snapshot['added'][$pivot][] = $replacement;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class BackfillEmailVerifiedAtForActiveUsers extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
// Existing active users predate email verification; keep them able to log in.
|
||||
DB::table('users')
|
||||
->where('status', 'active')
|
||||
->whereNull('email_verified_at')
|
||||
->update([
|
||||
'email_verified_at' => DB::raw('COALESCE(t_daftar, NOW())'),
|
||||
'is_verified' => 1,
|
||||
]);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
// Irreversible data backfill.
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateJanaNotisExportsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('jana_notis_exports', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->constrained('users');
|
||||
$table->foreignId('lelong_id')->constrained('lelong');
|
||||
$table->string('kodcaw', 20);
|
||||
$table->unsignedTinyInteger('fasa');
|
||||
$table->string('status', 20)->default('pending');
|
||||
$table->string('file_path')->nullable();
|
||||
$table->string('file_name')->nullable();
|
||||
$table->text('error_message')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['lelong_id', 'kodcaw', 'fasa']);
|
||||
$table->index(['user_id', 'status']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('jana_notis_exports');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddResponseToResitTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (! Schema::hasColumn('resit', 'response')) {
|
||||
Schema::table('resit', function (Blueprint $table) {
|
||||
$table->longText('response')->nullable()->after('status');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
if (Schema::hasColumn('resit', 'response')) {
|
||||
Schema::table('resit', function (Blueprint $table) {
|
||||
$table->dropColumn('response');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user