Compare commits
1 Commits
postgresql
...
master
Author | SHA1 | Date |
---|---|---|
coolneng | 71e0824c84 |
|
@ -0,0 +1,24 @@
|
||||||
|
"""remove test users
|
||||||
|
|
||||||
|
Revision ID: c93f3cf71005
|
||||||
|
Revises: e443e876bf33
|
||||||
|
Create Date: 2021-02-10 00:41:48.290699
|
||||||
|
|
||||||
|
"""
|
||||||
|
import sqlalchemy as sa
|
||||||
|
from alembic import op
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = "c93f3cf71005"
|
||||||
|
down_revision = "e443e876bf33"
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
query = "DELETE FROM users WHERE email LIKE '%techugo%'"
|
||||||
|
op.execute(query)
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
pass
|
Loading…
Reference in New Issue