I am using the platform to develop a custom ERP/MRP system for my company. This single system is replacing many smaller MS Access databases, spreadsheets, physical record keeping, and tribal knowledge. Because of the inherent weaknesses and shortcomings in trying to maintain their processes across the many old datastores, the company has opted for me to complete some of their processes initially, deploy those processes into production so they can take advantage of using a single database, and then continue adding on other processes to the application so as to have parallel production/development. So I, of course, intend to create a development database to test on and a production database but I’m unsure of all of the specifics of how to accomplish this using the platform.
I know from here that CUBA can be configured to execute database scripts whenever the server is started. Can I take this to mean that if I were to buildWar
and deploy that WAR to the production server that the platform will check that the data model of the WAR matches the schema of the database?
Also, whenever I buildWar
to compile the new WAR for the production server, is there an easy way to specify the database connection for the production database rather than the development database?