https://metaplay.io logo
Reset a production environment
# questions-and-feedback
d
Hi, we are still in development and doing a lot of schema changes. We are using our production environment for playtest. We realized the MasterVersion change was not causing a db reset of production so had a hunt around in the cli and ran metaplay db reset with all the confimation flags. We have deployed the new version but the production environment is not starting and we are getting Table 'my.env.name.GlobalStates' doesn't exist. I assumed the deploy would recreate the table. Is there a way for us to recover this or do we need support for this? Thanks Andre
Looks like the issue was not stopping the servers. By doing a metaplay remove server my.env.name and redploying things are working again.
p
The server indeed only applies schema changes when deploying, so doing a database reset while the server is running will cause the server to start failing as it loses all the database tables. Removing and re-deploying is indeed the right way to go about this.
d
always good to figure these things out before going live 😄