diff options
| author | Leo Mouyna <mouynaleo@gmail.com> | 2019-09-28 14:16:42 +0200 |
|---|---|---|
| committer | Léo Mouyna <leo.mouyna@macq.eu> | 2019-10-03 18:15:50 +0200 |
| commit | afc93531809913660c3e08b661bc3b1e4b3ddd2d (patch) | |
| tree | d90d39baf7ed40ca7b9812a26744c4af7bad77ee /ihatemoney/migrations/versions | |
| parent | 1f539b5c0d6d68897bcdb4cdf1f3f81debac49a9 (diff) | |
| download | ihatemoney-mirror-afc93531809913660c3e08b661bc3b1e4b3ddd2d.zip ihatemoney-mirror-afc93531809913660c3e08b661bc3b1e4b3ddd2d.tar.gz ihatemoney-mirror-afc93531809913660c3e08b661bc3b1e4b3ddd2d.tar.bz2 | |
feat: Optional field 'external link' in bill form.
An optional field has been added to the bill form to add a link to a real bill. A new action button allow user to see this bill. Breaking change with Bill model update for database, a migration is needed.
See issue #429.
Diffstat (limited to 'ihatemoney/migrations/versions')
| -rw-r--r-- | ihatemoney/migrations/versions/6c6fb2b7f229_.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ihatemoney/migrations/versions/6c6fb2b7f229_.py b/ihatemoney/migrations/versions/6c6fb2b7f229_.py new file mode 100644 index 0000000..0336f6c --- /dev/null +++ b/ihatemoney/migrations/versions/6c6fb2b7f229_.py @@ -0,0 +1,26 @@ +"""empty message + +Revision ID: 6c6fb2b7f229 +Revises: a67119aa3ee5 +Create Date: 2019-09-28 13:38:09.550747 + +""" + +# revision identifiers, used by Alembic. +revision = '6c6fb2b7f229' +down_revision = 'a67119aa3ee5' + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('bill', sa.Column('external_link', sa.UnicodeText(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('bill', 'external_link') + # ### end Alembic commands ### |
