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 | |
---|
4 | Revision ID: 9c111f4b5451 |
---|
5 | Revises: 11fe87e4cd5f |
---|
6 | Create Date: 2022-06-14 12:41:59.320748 |
---|
7 | |
---|
8 | """ |
---|
9 | |
---|
10 | from __future__ import unicode_literals, absolute_import |
---|
11 | |
---|
12 | # revision identifiers, used by Alembic. |
---|
13 | revision = '9c111f4b5451' |
---|
14 | down_revision = '11fe87e4cd5f' |
---|
15 | branch_labels = None |
---|
16 | depends_on = None |
---|
17 | |
---|
18 | from alembic import op |
---|
19 | import sqlalchemy as sa |
---|
20 | import rattail.db.types |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | def upgrade(): |
---|
25 | |
---|
26 | # batch_pricing |
---|
27 | op.add_column('batch_pricing', sa.Column('start_date', sa.Date(), nullable=True)) |
---|
28 | |
---|
29 | |
---|
30 | def downgrade(): |
---|
31 | |
---|
32 | # batch_pricing |
---|
33 | op.drop_column('batch_pricing', 'start_date') |
---|
Note: See
TracBrowser
for help on using the repository browser.