From c54ce995a58473ccea8902cad7695e5110b4dc0b Mon Sep 17 00:00:00 2001 From: Charles Morgan Date: Sat, 17 Jul 2021 13:02:58 -0400 Subject: [PATCH] Remove userInteraction from 'config_startup' (#3465) Removes UserInteraction from existing eggs in the panel, as its no longer supported. --- ...21_07_12_013420_remove_userinteraction.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 database/migrations/2021_07_12_013420_remove_userinteraction.php 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())'), + ]); + } +}