Skip to content

Move away from using the mattes/migrate migration library #2452

Closed

Description

@ddadlani

Feature Request

What challenge are you facing?

The migration library we are using provides very limited debugging information in the case of a failed migration. This leads to issues when trying to figure out the root cause of a migration failure, and also hinders the user because the database is marked as dirty, which requires a deeper understanding to fix. One example of this occurrence is in issue #2074

A Modest Proposal

This issue is to look at using other database migration libraries that support both go and sql migrations, or to write our own migration library if required.

Examples of other libraries:
https://github.com/Boostport/migration
https://github.com/pressly/goose

Concourse version: 4.0.0

Activity

  1. ddadlani commented on Aug 1, 2018

    @ddadlani
    ContributorAuthor

    We looked into using the other database migration libraries but they didn't quite fit our use case, either because we weren't able to run both go and sql migrations as part of the same up migration, or because the library wouldn't allow us to pass required config information into the go migrations.

    We settled on the solution of writing our own migration library to have more control over running our migrations.

  2. self-assigned this
    on Aug 1, 2018
  3. added 2 commits that reference this issue on Aug 1, 2018
  4. added 2 commits that reference this issue on Aug 2, 2018
  5. ddadlani commented on Aug 8, 2018

    @ddadlani
    ContributorAuthor

    The migration library is mostly replaced, with the exception of a CLI to generate SQL and Go up and down migration files in the required format. The CLI is a WIP on branch https://github.com/concourse/atc/tree/migration-cli.

    The next step after the CLI is to extract the library into its own repository for easier maintenance and wider usability.

  6. added a commit that references this issue on Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions