Skip to content
Snippets Groups Projects
Unverified Commit 30295ca5 authored by f00wl's avatar f00wl
Browse files

drop resettoken table

parent bac63e63
No related branches found
No related tags found
No related merge requests found
...@@ -340,16 +340,6 @@ class ClaimName(db.Model): ...@@ -340,16 +340,6 @@ class ClaimName(db.Model):
username = db.Column(db.String(255), nullable=False) username = db.Column(db.String(255), nullable=False)
class ResetToken(db.Model):
""" A reset token is used to reset authentication for a given user.
"""
__tablename__ = "resettoken"
user_uuid = db.Column(db.String(36), db.ForeignKey(User.uuid))
user = db.relationship(User)
expired_at = db.Column(sqlalchemy.DateTime, nullable=False)
class History(db.Model): class History(db.Model):
""" Records an even in an account's or profile's lifetime. """ Records an even in an account's or profile's lifetime.
""" """
......
""" drop resettoken
Revision ID: 07709c08a6d7
Revises: 134571bfe268
Create Date: 2022-12-04 17:34:18.338493
"""
from alembic import op
import sqlalchemy as sa
revision = '07709c08a6d7'
down_revision = '134571bfe268'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('resettoken')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('resettoken',
sa.Column('user_uuid', sa.VARCHAR(length=36), nullable=True),
sa.Column('expired_at', sa.DATETIME(), nullable=False),
sa.Column('uuid', sa.VARCHAR(length=36), nullable=False),
sa.Column('created_at', sa.DATETIME(), nullable=False),
sa.Column('updated_at', sa.DATETIME(), nullable=True),
sa.Column('comment', sa.VARCHAR(length=255), nullable=True),
sa.ForeignKeyConstraint(['user_uuid'], ['user.uuid'], ),
sa.PrimaryKeyConstraint('uuid')
)
# ### end Alembic commands ###
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment