From 8c9321dcdacf9480e468b7f03daaf584bfeb1605 Mon Sep 17 00:00:00 2001 From: Michael Marchand <35391349+MarchandMD@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:04:03 -0700 Subject: [PATCH 1/3] creates migration to add expected_cadence to promoted_templates --- .../versions/0374_add_expected_cadence.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 migrations/versions/0374_add_expected_cadence.py diff --git a/migrations/versions/0374_add_expected_cadence.py b/migrations/versions/0374_add_expected_cadence.py new file mode 100644 index 0000000000..2564f626e5 --- /dev/null +++ b/migrations/versions/0374_add_expected_cadence.py @@ -0,0 +1,21 @@ +""" + +Revision ID: 0641de8adbdc +Revises: 0373_va_profile_notification +Create Date: 2024-11-13 18:59:38.418467 + +""" +from alembic import op +import sqlalchemy as sa +from sqlalchemy.dialects import postgresql + +revision = '0374_add_expected_cadence' +down_revision = '0373_va_profile_notification' + + +def upgrade(): + op.add_column('promoted_templates', sa.Column('expected_cadence', sa.Text(), nullable=True)) + + +def downgrade(): + op.drop_column('promoted_templates', 'expected_cadence') From 02a84af02724b70207ce814302d84cf4f754d4df Mon Sep 17 00:00:00 2001 From: Michael Marchand <35391349+MarchandMD@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:12:42 -0700 Subject: [PATCH 2/3] updates commented revision id --- migrations/versions/0374_add_expected_cadence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/versions/0374_add_expected_cadence.py b/migrations/versions/0374_add_expected_cadence.py index 2564f626e5..ecd51e12de 100644 --- a/migrations/versions/0374_add_expected_cadence.py +++ b/migrations/versions/0374_add_expected_cadence.py @@ -1,6 +1,6 @@ """ -Revision ID: 0641de8adbdc +Revision ID: 0374_add_expected_cadence Revises: 0373_va_profile_notification Create Date: 2024-11-13 18:59:38.418467 From 54d6a5d909a0422af001a9c4b030fb31d7c463ac Mon Sep 17 00:00:00 2001 From: Michael Marchand <35391349+MarchandMD@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:14:16 -0700 Subject: [PATCH 3/3] updates models.py --- app/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models.py b/app/models.py index dd8b0286ec..121481fef5 100644 --- a/app/models.py +++ b/app/models.py @@ -1045,6 +1045,7 @@ class PromotedTemplate(db.Model): promoted_template_content_digest = db.Column(db.Text(), nullable=True) created_at = db.Column(db.DateTime, nullable=False, default=datetime.datetime.utcnow) updated_at = db.Column(db.DateTime, nullable=True, onupdate=datetime.datetime.utcnow) + expected_cadence = db.Column(db.Text(), nullable=True) class ProviderRates(db.Model):