aboutsummaryrefslogtreecommitdiff
path: root/budget/migrations
diff options
context:
space:
mode:
authorJocelyn Delande <jocelyn@crapouillou.net>2015-08-20 10:33:43 +0200
committerJocelyn Delande <jocelyn@crapouillou.net>2016-06-15 10:20:37 +0200
commit2b071a1a3bc752bfaa0fd6c0b2d8f8460721d6d8 (patch)
tree72fcca608854117b3d87de95454f88bbb9260dd9 /budget/migrations
parent789196721584ca4800e4236eee36955e78761346 (diff)
downloadihatemoney-mirror-2b071a1a3bc752bfaa0fd6c0b2d8f8460721d6d8.zip
ihatemoney-mirror-2b071a1a3bc752bfaa0fd6c0b2d8f8460721d6d8.tar.gz
ihatemoney-mirror-2b071a1a3bc752bfaa0fd6c0b2d8f8460721d6d8.tar.bz2
Add members weight in models and budget backend refs #94
Diffstat (limited to 'budget/migrations')
-rw-r--r--budget/migrations/versions/26d6a218c329_.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/budget/migrations/versions/26d6a218c329_.py b/budget/migrations/versions/26d6a218c329_.py
new file mode 100644
index 0000000..859b9af
--- /dev/null
+++ b/budget/migrations/versions/26d6a218c329_.py
@@ -0,0 +1,26 @@
+"""Add Person.weight column
+
+Revision ID: 26d6a218c329
+Revises: b9a10d5d63ce
+Create Date: 2016-06-15 09:22:04.069447
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '26d6a218c329'
+down_revision = 'b9a10d5d63ce'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ ### commands auto generated by Alembic - please adjust! ###
+ op.add_column('person', sa.Column('weight', sa.Float(), nullable=True))
+ ### end Alembic commands ###
+
+
+def downgrade():
+ ### commands auto generated by Alembic - please adjust! ###
+ op.drop_column('person', 'weight')
+ ### end Alembic commands ###