From a590cc3dd27c4809d8179ff3ffb046837ff2051a Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 22 Jul 2016 05:56:00 -0700 Subject: [PATCH] One more fix for MAC address weirdness --- ...016_07_22_054850_one_more_mac_addr_fix.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2016_07_22_054850_one_more_mac_addr_fix.php diff --git a/database/migrations/2016_07_22_054850_one_more_mac_addr_fix.php b/database/migrations/2016_07_22_054850_one_more_mac_addr_fix.php new file mode 100644 index 0000000000..cc45976d54 --- /dev/null +++ b/database/migrations/2016_07_22_054850_one_more_mac_addr_fix.php @@ -0,0 +1,34 @@ +format=='regex:/^MAC$/') { + $custom_field->format = 'regex:/^[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}$/'; + } + $custom_field->save(); + + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}