CORE-POS / IS4C

Cooperative Operational Retail Environment
http://www.core-pos.com
GNU General Public License v2.0
63 stars 44 forks source link

Initial script to auto-update DB #1178

Closed lgedgar closed 1 year ago

lgedgar commented 1 year ago

proof of concept, probably needs improvement

My use case here is wanting to auto-update the demo every night. Perhaps it could also be used as part of "normal" install or upgrades.

It currently requires both NODETYPE and DBTYPE args. After testing I realized probably DBTYPE should be omitted and the script should work on all models for the NODETYPE regardless of which DB they're in? (Because plugins would then be included, which they aren't yet.) And so far I've only attempted the "office" upgrades.

Wasn't sure where the script should live, but this seemed reasonable. Happy to move it elsewhere and make any other improvements as needed, just let me know. Maybe you have a reason to avoid this approach entirely even? But if the idea is good enough then I'll remove the DBTYPE arg as mentioned, etc.

joelbrock commented 1 year ago

this is a wonderful addition. Will assist greatly with set up and remote upkeep. Thanks @lgedgar !

gohanman commented 1 year ago

Seems reasonable enough to me.