Add migration scripts for some tables#29
Conversation
These are the minimal tables in the draft entity relationship diagram required to start working with opportunities and applications. Issue #8 Set up schema Co-authored by: Daniel Schultz <slifty@gmail.com>
|
I will come back to the GitHub migrate action in the morning, but I encourage you to see if this works locally. |
|
I would love to see these added in the context of their use -- that way we avoid situations where we realize the table definition doesn't work for our API use case. Now that we have all of the layers set up, what do you think about focusing on implementing a specific endpoint top-to-bottom (migration + route + buisness logic)? |
That is also fine. I don't think it would change the order of development, meaning I would still need a database to write to in order to develop routes, handlers, etc. Also in the spirit of Continuous Integration we don't want long-lived branches. But yes, I agree that it will affect the design by making sure it can be used in the context it's supposed to be used, etc. Makes sense. These tables are the minimal ones needed for opportunities and applications, i.e. the two endpoints described in the present draft OpenAPI document. |
Codecov Report
@@ Coverage Diff @@
## main #29 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 20 20
=========================================
Hits 20 20 Continue to review full report at Codecov.
|
|
I forgot to mention why I did |
|
I think I already mentioned a "why" on the |
|
I also realize |
|
One more thing to consider is whether to make them more idempotent, e.g. |
|
I pulled the canonical_fields migration over to #55! |
|
I think we can close this as well; we have a good migrations pattern (and can always reference this PR even after it's closed) |
These are the minimal tables in the draft entity relationship diagram
required to start working with opportunities and applications.
Issue #8 Set up schema
Co-authored by: Daniel Schultz slifty@gmail.com