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

Set up SQL Database #7

Open
pawelgrimm opened this issue Sep 23, 2020 · 2 comments
Open

Set up SQL Database #7

pawelgrimm opened this issue Sep 23, 2020 · 2 comments
Labels
s:3 Medium issue task A task for a story
Milestone

Comments

@pawelgrimm
Copy link
Owner

pawelgrimm commented Sep 23, 2020

Acceptance criteria:

  • A working PostgreSQL database
  • A schema migration strategy
  • The following tables:
    • sessions: primary key id, foreign key [users] user_id, num start_unix, num end_unix, foreign key [projects] project_id, text description, bool edited, bool backfilled, gen: [duration, date, start_time, end_time]
    • users: id, varchar name, hash/auth_id
    • tasks: id, text title, todoist_id
@pawelgrimm
Copy link
Owner Author

Schema migration strategy:

  • set up a script in scripts.dokku.release to run DB migrations

http://dokku.viewdocs.io/dokku~v0.21.4/advanced-usage/deployment-tasks/

@pawelgrimm
Copy link
Owner Author

pawelgrimm commented Oct 29, 2020

Let's make sure to use UUIDs as primary keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:3 Medium issue task A task for a story
Projects
None yet
Development

No branches or pull requests

1 participant