How should we initialize our postgres database/user? #313
Replies: 2 comments
-
|
I'm now definitely in favor of Option 1, because a) this feels like the least amount of work for new users setting up AnyVar for the first time, and b) it avoids the where-should-these-scripts-live problem |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Done, we set via env vars where it's needed + include sql commands in docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We removed our
postgres_init.sqlfile during our refactor, which was just a very simple SQL file that initializes our database and database user:We also had a nearly identical version of this file for our test database/test user.
However, we haven't replaced these scripts with anything yet, so we need some mechanism to initialize these things. Our options are:
I originally opted for option 2 and created a PR for this, but James brought up several excellent points that I believe merited further discussion. I'm re-posting his comments here:
Beta Was this translation helpful? Give feedback.
All reactions