Is there a command for assigning a persistent store from the terminal? If not, I think we need one and here is the reason.
I added an app in production, the app uses a persistent store database but something, which I cannot tell yet (I did not create this app) happened and the app threw an error saying X database doesn't exist, Now, the server would just give me a 502 gateway error preventing me from going and adding the persistent store from the admin settings, which is what needed to be done for the app to work. In addition, I would get an error when trying to uninstall the app because apps have to work fine for them to be able to be delete it (this doesn't make sense to me). Anyway, I was stuck in a loop: the server wouldn't start because the app throws an error, and I could not uninstall the app because was throwing an error.
I went and added the persistent store manually using pgadmin and that solved it, but it made me think that we need that command to do it directly.
Thanks,
Michael