Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Deleted the contract in postgre database by mistakeForum ↗

Deleted the contract in postgre database by mistake

App Development3 posts183 viewsLast activity Jul 2022
SK
skylornaOP
Jul 2022

Is there any way to recover the contract stored in postgre database if it is deleted by mistake.
Does the following sentence mean that deleting the database has no effect?

CO
cocreature
Jul 2022

In general, you should never interact directly with the PostgreSQL database of either the JSON API (the docs you’re pointing to) or the underlying ledger.

If you archive a contract (I assume you mean that by “delete”), you could query the transaction stream to see how it was created and recreate it. Note that this will change the contract id though.

SK
skylorna
Jul 2022

thank you I confused the query store with the persistent store

← Back to Discussions