Skip to content

Commit

Permalink
Commit author and message can be empty now
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Aug 20, 2021
1 parent 7155c2b commit f5cff3e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions migrations/versions/b7be3915245e_remove_unknowns.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""remove unknowns
Revision ID: b7be3915245e
Revises: 933591271c6a
Create Date: 2021-08-19 17:49:31.661635
"""
from alembic import op


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


def upgrade():
op.execute("UPDATE commit SET author_name = '' WHERE author_name = 'none'")
op.execute("UPDATE commit SET author_name = '' WHERE author_name = 'unknown'")
op.execute("UPDATE commit SET message = '' WHERE message = 'none'")
op.execute("UPDATE commit SET message = '' WHERE message = 'unknown'")


def downgrade():
pass

0 comments on commit f5cff3e

Please sign in to comment.