Skip to content

Commit

Permalink
Project due state - first round
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre GIRAUD committed Jul 17, 2014
1 parent 5edde7b commit bd229d7
Show file tree
Hide file tree
Showing 7 changed files with 2,510 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""Added due_state column to project table
Revision ID: b54ce37bde0
Revises: 33a5ec066e1d
Create Date: 2014-07-17 16:52:59.898360
"""

# revision identifiers, used by Alembic.
revision = 'b54ce37bde0'
down_revision = '33a5ec066e1d'

from alembic import op
import sqlalchemy as sa


def upgrade():
op.add_column('project', sa.Column('due_date', sa.DateTime(), nullable=True))


def downgrade():
op.drop_column('project', 'due_date')
2 changes: 2 additions & 0 deletions osmtm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ class Project(Base, Translatable):

josm_preset = Column(Unicode)

due_date = Column(DateTime)

def __init__(self, name, user=None):
self.name = name
self.author = user
Expand Down
Loading

0 comments on commit bd229d7

Please sign in to comment.