Do I need to delete and recreate the DB under the Daml driver for postgres when I modify the Daml package?
- gyorgybalazsiOP
It seems that restarting the driver doesn’t refresh the packages.
Am I right?
- cocreature 2
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-darand 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).
- gyorgybalazsi
Thanks!