Don't try to flip null values; closes #2753
This commit is contained in:
parent
e54612d533
commit
26d409c29c
|
@ -103,7 +103,7 @@ class MergePermissionsTableIntoSubusers extends Migration
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
$flipped = array_flip(self::$permissionsMap);
|
$flipped = array_flip(array_filter(self::$permissionsMap));
|
||||||
|
|
||||||
foreach (DB::select('SELECT id, permissions FROM subusers') as $datum) {
|
foreach (DB::select('SELECT id, permissions FROM subusers') as $datum) {
|
||||||
$values = [];
|
$values = [];
|
||||||
|
|
Loading…
Reference in New Issue