-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1421 as an operator I can maintain a list of suspected spam emai…
…l domains and block them from connecting to a payment provider
- Loading branch information
1 parent
65d6e69
commit 2323a81
Showing
5 changed files
with
51 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""add SpamEmailDomain | ||
Revision ID: abfb5c2f77e6 | ||
Revises: abc1ff0c85e0 | ||
Create Date: 2024-11-11 21:27:48.094799 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "abfb5c2f77e6" | ||
down_revision = "abc1ff0c85e0" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.create_table( | ||
"spam_email_domain", | ||
sa.Column("id", sa.Integer(), nullable=False), | ||
sa.Column("uuid", sa.String(), nullable=True), | ||
sa.Column("ts", sa.DateTime(), nullable=True), | ||
sa.Column("domain", sa.String(), nullable=True), | ||
sa.Column("archived", sa.Boolean(), nullable=True), | ||
sa.Column("created_at", sa.DateTime(), nullable=True), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
|
||
|
||
def downgrade(): | ||
pass |
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
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