Skip to content
CCPEDIAby Unity Nodes
App Development

Deleted the contract in postgre database by mistake

3 posts199 viewsLast activity Jul 2022

  1. skylornaOP

    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?

  2. cocreature

    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.

  3. skylorna

    thank you I confused the query store with the persistent store