Skip to content
This repository was archived by the owner on Apr 21, 2024. It is now read-only.

Add PostgreSQL migration #9

Open
GetPsyched opened this issue May 31, 2022 · 1 comment
Open

Add PostgreSQL migration #9

GetPsyched opened this issue May 31, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@GetPsyched
Copy link
Member

As of now, when a local instance of this project is run, it assumes that your database has been set with the right schema.

The migration is currently done in Project-Hyperlink. However, I do not want to re-write this exact code in Go. Rather, if possible, it will be better to integrate an optional argument migrate when running go run cmd/main.go which will execute this piece of code and migrate the given PostgreSQL database to our set schema.

This will make it easier to run and debug a local instance of Postgres which as of now is not possible automatically.

Optionally, the implementation of this in Project-Hyperlink can be removed entirely and fetched from a hosted instance of this repository instead. This will be better as otherwise the schemas will need to be updated in both repositories for no good reason.

@GetPsyched GetPsyched self-assigned this May 31, 2022
@GetPsyched GetPsyched added enhancement New feature or request help wanted Extra attention is needed labels May 31, 2022
@GetPsyched GetPsyched added this to the v1.0 milestone May 31, 2022
GetPsyched added a commit that referenced this issue Jul 16, 2022
Add initialisation code for the database tables
@GetPsyched
Copy link
Member Author

Remaining in this issue is to have the option to migrate on command and not on every run of this repo's instance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant