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

Considerations on DB install + extensions / migrations #55

Open
4 tasks
aschrijver opened this issue Jan 10, 2021 · 1 comment
Open
4 tasks

Considerations on DB install + extensions / migrations #55

aschrijver opened this issue Jan 10, 2021 · 1 comment
Milestone

Comments

@aschrijver
Copy link

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.
@cjslep
Copy link
Member

cjslep commented Apr 26, 2021

Thanks for these suggestions!

@cjslep cjslep added this to the v0.1.0 milestone Apr 26, 2021
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

No branches or pull requests

2 participants