-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💬 change Homo Sapiens for Homo sapiens
- Loading branch information
1 parent
9eec57e
commit 2876836
Showing
1 changed file
with
43 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,43 @@ | ||
"""Change 'Homo Sapiens' for 'Homo sapiens' | ||
Revision ID: 12850dab14e9 | ||
Revises: 025cf1ee0adf | ||
Create Date: 2021-05-10 14:46:27.858830 | ||
""" | ||
from sqlalchemy.sql import table, column | ||
from sqlalchemy import String | ||
from alembic import op | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '12850dab14e9' | ||
down_revision = '025cf1ee0adf' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
connection = op.get_bind() | ||
participant = table('participant', column('species', String)) | ||
|
||
connection.execute( | ||
participant.update().where( | ||
participant.c.species == 'Homo Sapiens' | ||
).values(species='Homo sapiens') | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
connection = op.get_bind() | ||
participant = table('participant', column('species', String)) | ||
|
||
connection.execute( | ||
participant.update().where( | ||
participant.c.species == 'Homo sapiens' | ||
).values(species='Homo Sapiens') | ||
) | ||
# ### end Alembic commands ### |