diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-27 14:02:44 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-27 14:02:44 +0100 |
| commit | a18200938fa6ef0e5d9696d54f3780fb036ad81e (patch) | |
| tree | de4142423a16a81938b486c342f7be1d5a217a8f /migrations | |
| parent | add demo example of a random walk (diff) | |
| download | AnnotateChange-a18200938fa6ef0e5d9696d54f3780fb036ad81e.tar.gz AnnotateChange-a18200938fa6ef0e5d9696d54f3780fb036ad81e.zip | |
DB migration for full name column in User table
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/versions/70fb9f3860b1_.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/migrations/versions/70fb9f3860b1_.py b/migrations/versions/70fb9f3860b1_.py new file mode 100644 index 0000000..165021c --- /dev/null +++ b/migrations/versions/70fb9f3860b1_.py @@ -0,0 +1,28 @@ +"""Add fullname column to User table + +Revision ID: 70fb9f3860b1 +Revises: 48da31c2de2c +Create Date: 2019-08-27 14:01:54.365236 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '70fb9f3860b1' +down_revision = '48da31c2de2c' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('user', sa.Column('fullname', sa.String(length=256), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('user', 'fullname') + # ### end Alembic commands ### |
