Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport Daml Driver for PostgreSQL additional startup options to main #8904

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

dasormeter
Copy link
Collaborator

Enable sql-start-mode option for daml-on-sql (backported from 1.10.1 release)

CHANGELOG_BEGIN
[Daml Driver for PostgreSQL] Enable migrate only option at startup
CHANGELOG_END

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

* Enable migration only option for startup

CHANGELOG_BEGIN
[Daml Driver for PostgreSQL] Enable migrate only option at startup
CHANGELOG_END

* scalafmt

* Rationalize names of the sql start modes

* no op ledger

* scalafmt

* WIP: choose to run migrationOnly in Main

* revert changes to startup options for sandboxnext

* add sql-start-mode parameter to CLI, validate it

* scalafmt

* Update documentation

* delete some WIP experiments

* removed unused import

* Reorder migrate to properly initialize dao

* use lowercase delimitted options rather than initial caps for sql-start-mode options

* remove redundant parens

* exit after running migration scripts

* return future for flyway migration, only exit on complete, use cached threadpool execution context

* scalafmt

* correct options in docs to lowercase dash delimited
@dasormeter dasormeter requested a review from a user February 19, 2021 18:49
@dasormeter dasormeter changed the title Daml Driver for PostgreSQL additional startup options (#8823) Backport Daml Driver for PostgreSQL additional startup options to main Feb 19, 2021
@mergify mergify bot merged commit ddc1af1 into main Feb 19, 2021
@mergify mergify bot deleted the backport-release-1.10.1 branch February 19, 2021 21:35
@ghost
Copy link

ghost commented Feb 22, 2021

Think you can get a test case in for this? It'd be easy to break in the future.

@dasormeter
Copy link
Collaborator Author

Yup will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants