Skip to content

Commit a554f24

Browse files
committed
Fix typo in migration script that deleted regex from non-required vars
1 parent 887e48a commit a554f24

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
77
### Fixed
88
* `[pre.6]` — Addresses misconfigured console queue that was still sending data way to quickly thus causing the console to explode on some devices when large amounts of data were sent.
99
* `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations.
10+
* `[pre.6]` — Fixes typo in migrations that wouldn't save custom regex for non-required variables.
1011

1112
## v0.6.0-pre.6 (Courageous Carniadactylus)
1213
### Fixed

database/migrations/2017_03_11_215455_ChangeServiceVariablesValidationRules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function up()
2020

2121
DB::transaction(function () {
2222
foreach (ServiceVariable::all() as $variable) {
23-
$variable->rules = ($variable->required) ? 'required|regex:' . $variable->rules : 'regex:' . $variable->regex;
23+
$variable->rules = ($variable->required) ? 'required|regex:' . $variable->rules : 'regex:' . $variable->rules;
2424
$variable->save();
2525
}
2626
});

0 commit comments

Comments
 (0)