Fix front and backend views with new service variable setups
This commit is contained in:
parent
66e94dd7c0
commit
fcadee7e67
14 changed files with 104 additions and 93 deletions
|
@ -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',
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue