buang limit sehari
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('sesi_taklimat', function (Blueprint $table) {
|
||||
// Benarkan beberapa sesi dalam satu hari untuk setiap DUN
|
||||
$table->dropUnique(['dun_id', 'tarikh']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('sesi_taklimat', function (Blueprint $table) {
|
||||
$table->unique(['dun_id', 'tarikh']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user