mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 14:01:06 +03:30
add validation for enabled labels, rename enable (to enabled) in labels table, and update the enabled attribute of corresponding labels to false when cycle saved
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('labels', function (Blueprint $table) {
|
||||
$table->renameColumn('enable', 'enabled');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('labels', function (Blueprint $table) {
|
||||
$table->renameColumn('enabled', 'enable');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user