Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Do I need to delete and recreate the DB under the Daml driver for postgres when I modify the Daml package?Forum ↗

Do I need to delete and recreate the DB under the Daml driver for postgres when I modify the Daml package?

App Development3 posts178 views2 likesLast activity Aug 2021
GY
gyorgybalazsiOP
Aug 2021

It seems that restarting the driver doesn’t refresh the packages.

Am I right?

CO
cocreature
Aug 2021

You don’t need to restart the driver. You need to upload your modified package via daml ledger upload-dar.

I’d recommend to always use daml ledger upload-dar and never use the CLI arguments to pass packages when working with anything but sandbox. Iirc daml on sql will even error out on the second run if you specify it anyway once it has created a database.

You definitely don’t want to delete and recreate the db if you want to keep your data (and if you don’t, maybe you’re better off with an in-memory ledger like sandbox than daml on sql).

GY
gyorgybalazsi
Aug 2021

Thanks!

← Back to Discussions