-
Notifications
You must be signed in to change notification settings - Fork 74
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
HJ-87 and HJ-88: model changes #5600
base: main
Are you sure you want to change the base?
Changes from 7 commits
bc0a5a5
8099de7
0a60fcf
204d957
3e78a4f
899a20a
703ace0
833874e
0832e24
c1eafb8
084c2a1
c5e24e1
e200e7b
df8e884
e167770
5da33c8
7181a02
61f38a4
88314a8
1962341
b152e93
5f88545
3d636cb
36b9915
aa4689c
63564b7
b6dbdd6
ef91b70
6e52636
4437235
820c58d
b00e706
0932586
ff7fd8c
408beb5
5e0afc1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: i'd probably update the filename here just to be consistent with the new functionality - it can be hard to track down migrations sometimes and relying on the filename can help with looking it up, so this could add a bit of confusion moving forward! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed in 61f38a4#diff-6ea847dd5dab7785c69f11369a07c894290e837501325a3b8eb5f003059c33ea and made sure |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""add `hidden` and `data_use` columns to stagedresource | ||
|
||
Revision ID: d9237a0c0d5a | ||
Revises: c90d46f6d3f2 | ||
Create Date: 2024-11-21 13:18:24.085858 | ||
|
||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "d9237a0c0d5a" | ||
down_revision = "c90d46f6d3f2" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column("stagedresource", sa.Column("hidden", sa.Boolean(), nullable=False)) | ||
op.add_column("stagedresource", sa.Column("data_use", sa.String(), nullable=True)) | ||
adamsachs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
op.drop_column("stagedresource", "hidden") | ||
op.drop_column("stagedresource", "data_use") | ||
# ### end Alembic commands ### |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed: https://github.com/ethyca/fides/pull/5600/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR24