source: rattail/rattail/db/alembic/versions/9c111f4b5451_add_start_end_for_pricing_batch.py @ 72d1b07

Last change on this file since 72d1b07 was 72d1b07, checked in by Lance Edgar <lance@…>, 8 months ago

Add basic start date support for "future" pricing batch

  • Property mode set to 100644
File size: 637 bytes
Line 
1# -*- coding: utf-8; -*-
2"""add start/end for pricing batch
3
4Revision ID: 9c111f4b5451
5Revises: 11fe87e4cd5f
6Create Date: 2022-06-14 12:41:59.320748
7
8"""
9
10from __future__ import unicode_literals, absolute_import
11
12# revision identifiers, used by Alembic.
13revision = '9c111f4b5451'
14down_revision = '11fe87e4cd5f'
15branch_labels = None
16depends_on = None
17
18from alembic import op
19import sqlalchemy as sa
20import rattail.db.types
21
22
23
24def upgrade():
25
26    # batch_pricing
27    op.add_column('batch_pricing', sa.Column('start_date', sa.Date(), nullable=True))
28
29
30def downgrade():
31
32    # batch_pricing
33    op.drop_column('batch_pricing', 'start_date')
Note: See TracBrowser for help on using the repository browser.