-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDP-1001] refactor migration commands to keep a consistent naming ap…
…proach, in preparation for the TSS migrations (pt 1/2) (#123) ### What The main change here was to update the migration commands so all of them have a consistent hierarchy. Here is what they look like right now: - `db sdp migrate up | down`: for sdp per-tenant migrations - The old command was ~`db migrate up | down`~. Notice it had a different (global) hierarchy despite being a per-tenant command - `db auth migrate up | down`: for auth per-tenant migrations - This haven't changed. - `db admin migrate up | down`: for admin migrations that are relevant to registering and organizing the tenants - The old command was ~`db tenant migrate up | down`~. It was for a global thing, yet it looked less global than the first command. Also, despite being called `tenant`, it had a global scope rather than per-tenant #### Additional changes: - Updated the migration folders and migration table tracker to be consistent with the command names - Refactored the code a bit for increased consistency and better organization - Updated wording and method documentation for increased clarity. It took me a while to figure out what each command was does, so this was highly needed especially for people who will not be debugging the code. ### Why - The commands were inconsistent - The documentation was unclear - In preparation for adding the tss migrations
- Loading branch information
1 parent
3382eec
commit 24e4b05
Showing
24 changed files
with
282 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.