This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PC-9275) : Add USER_PROFILING_FRAUD_CHECK feature flag
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/pcapi/alembic/versions/20210621_2e918169bb66_add_user_profiling_fraud_check_feature_.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,26 @@ | ||
"""Add USER_PROFILING_FRAUD_CHECK feature flag | ||
Revision ID: 2e918169bb66 | ||
Revises: 84706f806e3d | ||
Create Date: 2021-06-21 07:39:28.931418 | ||
""" | ||
from pcapi.models import feature | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "2e918169bb66" | ||
down_revision = "84706f806e3d" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
FLAG = feature.FeatureToggle.USER_PROFILING_FRAUD_CHECK | ||
|
||
|
||
def upgrade() -> None: | ||
feature.add_feature_to_database(FLAG) | ||
|
||
|
||
def downgrade() -> None: | ||
feature.remove_feature_from_database(FLAG) |
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