diff --git a/database/migrations/2021_07_12_013420_remove_userinteraction.php b/database/migrations/2021_07_12_013420_remove_userinteraction.php new file mode 100644 index 000000000..23967ff59 --- /dev/null +++ b/database/migrations/2021_07_12_013420_remove_userinteraction.php @@ -0,0 +1,27 @@ +update([ + 'config_startup' => DB::raw('JSON_REMOVE(config_startup, \'$.userInteraction\')'), + ]); + } + + public function down() + { + // Add blank User Interaction array back to startup config + DB::table('eggs')->update([ + 'config_startup' => DB::raw('JSON_SET(config_startup, \'$.userInteraction\', JSON_ARRAY())'), + ]); + } +}