Skip to content

Commit

Permalink
Add migration to add GroupMembership.created and updated
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Dec 5, 2024
1 parent 09ca2e4 commit ef23283
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Add user_group.created and updated columns."""

from alembic import op
from sqlalchemy import Column, DateTime

revision = "9c0efdf762a6"
down_revision = "59f42b6a0cd9"


def upgrade():
op.add_column("user_group", Column("created", DateTime))
op.add_column("user_group", Column("updated", DateTime))


def downgrade():
op.drop_column("user_group", "updated")
op.drop_column("user_group", "created")

0 comments on commit ef23283

Please sign in to comment.