mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 05:13:45 +02:00
Fix front and backend views with new service variable setups
This commit is contained in:
@@ -24,6 +24,10 @@ class ChangeServiceVariablesValidationRules extends Migration
|
||||
$variable->save();
|
||||
}
|
||||
});
|
||||
|
||||
Schema::table('service_variables', function (Blueprint $table) {
|
||||
$table->dropColumn('required');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,6 +39,7 @@ class ChangeServiceVariablesValidationRules extends Migration
|
||||
{
|
||||
Schema::table('service_variables', function (Blueprint $table) {
|
||||
$table->renameColumn('rules', 'regex');
|
||||
$table->boolean('required')->default(true)->before('regex');
|
||||
});
|
||||
|
||||
DB::transaction(function () {
|
||||
|
||||
@@ -246,7 +246,7 @@ EOF;
|
||||
'user_viewable' => 0,
|
||||
'user_editable' => 0,
|
||||
'required' => 0,
|
||||
'rules' => 'required|string',
|
||||
'rules' => 'string',
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user