Comparison

plugins/mod_storage_sql.lua @ 13634:7209769e88bc

mod_storage_sql: Don't treat Enter or Ctrl-C as yes in upgrade command It seems to imply that No is the default, so it shouldn't continue doing the Yes action unless you actually press Y
author Kim Alvefur <zash@zash.se>
date Thu, 23 Jan 2025 22:32:44 +0100
parent 13633:6b84d11aa09b
child 13661:5a7f042fe05d
comparison
equal deleted inserted replaced
13633:6b84d11aa09b 13634:7209769e88bc
1023 for _, params in pairs(uris) do 1023 for _, params in pairs(uris) do
1024 print("", "["..params.driver.."] "..params.database..(params.host and " on "..params.host or "")); 1024 print("", "["..params.driver.."] "..params.database..(params.host and " on "..params.host or ""));
1025 end 1025 end
1026 print(""); 1026 print("");
1027 print("Ensure you have working backups of the above databases before continuing! "); 1027 print("Ensure you have working backups of the above databases before continuing! ");
1028 if not hi.show_yesno("Continue with the database upgrade? [yN]") then 1028 if false == hi.show_yesno("Continue with the database upgrade? [yN]") then
1029 print("Ok, no upgrade. But you do have backups, don't you? ...don't you?? :-)"); 1029 print("Ok, no upgrade. But you do have backups, don't you? ...don't you?? :-)");
1030 return; 1030 return;
1031 end 1031 end
1032 -- Upgrade each one 1032 -- Upgrade each one
1033 for _, params in pairs(uris) do 1033 for _, params in pairs(uris) do