This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
… response (#465) * add fixture for user, add first_name and last_name to FidesopsUser, add fields to response * run autoformatter on migrations * make username unique, rename fixture * test multiple user get endpoint
- Loading branch information
Sean Preston
authored
May 5, 2022
1 parent
96c764d
commit d576434
Showing
6 changed files
with
236 additions
and
98 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
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
30 changes: 30 additions & 0 deletions
30
src/migrations/versions/29a7d707163a_adds_first_name_and_last_name_to_user_.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""adds first_name and last_name to user model | ||
Revision ID: 29a7d707163a | ||
Revises: 90070db16d05 | ||
Create Date: 2022-05-05 13:41:28.807920 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "29a7d707163a" | ||
down_revision = "90070db16d05" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("fidesopsuser", sa.Column("first_name", sa.String(), nullable=True)) | ||
op.add_column("fidesopsuser", sa.Column("last_name", sa.String(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("fidesopsuser", "last_name") | ||
op.drop_column("fidesopsuser", "first_name") | ||
# ### end Alembic commands ### |
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.