aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/migrations
diff options
context:
space:
mode:
authorLeo Mouyna <mouynaleo@gmail.com>2019-09-28 14:16:42 +0200
committerLéo Mouyna <leo.mouyna@macq.eu>2019-10-03 18:15:50 +0200
commitafc93531809913660c3e08b661bc3b1e4b3ddd2d (patch)
treed90d39baf7ed40ca7b9812a26744c4af7bad77ee /ihatemoney/migrations
parent1f539b5c0d6d68897bcdb4cdf1f3f81debac49a9 (diff)
downloadihatemoney-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')
-rw-r--r--ihatemoney/migrations/versions/6c6fb2b7f229_.py26
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 ###