Skip to content

Commit

Permalink
Commit repository and sha can be empty now (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Aug 20, 2021
1 parent f5cff3e commit c75535c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions migrations/versions/ab19aaf54876_remove_more_unknowns.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""remove more unknowns
Revision ID: ab19aaf54876
Revises: b7be3915245e
Create Date: 2021-08-19 18:10:21.177051
"""
from alembic import op


# revision identifiers, used by Alembic.
revision = "ab19aaf54876"
down_revision = "b7be3915245e"
branch_labels = None
depends_on = None


def upgrade():
op.execute("UPDATE commit SET parent = NULL WHERE parent = 'unknown'")
op.execute("UPDATE commit SET parent = NULL WHERE parent = ''")
op.execute("UPDATE commit SET repository = '' WHERE repository = 'none'")
op.execute("UPDATE commit SET sha = '' WHERE sha = 'none'")


def downgrade():
pass

0 comments on commit c75535c

Please sign in to comment.