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

Init Postgres Command #187

Open
1 of 4 tasks
Tracked by #161
jehrhardt opened this issue Aug 6, 2024 · 0 comments
Open
1 of 4 tasks
Tracked by #161

Init Postgres Command #187

jehrhardt opened this issue Aug 6, 2024 · 0 comments

Comments

@jehrhardt
Copy link
Owner

jehrhardt commented Aug 6, 2024

Acceptance criteria

  • Command cozyauth db init is added:
    • Create schema cozyauth
    • Create user cozyauth
    • Run DB migrations on schema
    • Add COZYAUTH_DATABASE_URL to .env file
  • COZYAUTH_DATABASE_URL environment variable is used as database URL in settings.
  • --database-url flag is used for setup (defaults to localhost:5432/postgres or DATABASE_URL environment variable).
  • cozyauth migrate is moved to cozyauth db migrate.
@jehrhardt jehrhardt changed the title Switch to SQLite Setup Postgres Command Aug 6, 2024
@jehrhardt jehrhardt linked a pull request Aug 6, 2024 that will close this issue
@jehrhardt jehrhardt changed the title Setup Postgres Command Init Postgres Command Aug 13, 2024
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

Successfully merging a pull request may close this issue.

1 participant