-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit repository and sha can be empty now (#149)
- Loading branch information
1 parent
f5cff3e
commit c75535c
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |