Skip to content

Considerations on DB install + extensions / migrations #55

Open
@aschrijver

Description

@aschrijver

The following is based on my gofed apcore example installation experience.

Database installation

Some suggestions and observations (for separate issues):

  • RFC: DB + dbuser creation and configuration are not part of the CLI script, but might be.
  • RFC: Add extension: CREATE EXTENSION IF NOT EXISTS "pgcrypto";
  • RFC: Dump a .sql installation script of the actions that were performed on the DB.
  • BUG: A subsequent reinstall with ./example init-db fails, unless recreating the DB.

Regarding the postgres.go code:

  • Consider separating DB creation / install / initialization from other DB queries.

Database extensions / migrations

For my understanding of working with apcore I'd need examples of how to:

  • Make extensions to the DB schema (add / redefine table property, add table / index / etc.).
  • Facilitate DB extensions when upgrading my app, without (or with minimal) prod downtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions