From 91c57bd2b4cca1d1e0f9eefc30ebfdb5e2c92d22 Mon Sep 17 00:00:00 2001 From: Steven Reilly Date: Wed, 28 Sep 2022 16:05:57 -0400 Subject: [PATCH] remove unused org types before adding ours --- migrations/versions/0376_add_org_names.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrations/versions/0376_add_org_names.py b/migrations/versions/0376_add_org_names.py index 76d539e88..19bb292b8 100644 --- a/migrations/versions/0376_add_org_names.py +++ b/migrations/versions/0376_add_org_names.py @@ -17,7 +17,8 @@ def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.get_bind() - op.execute("INSERT INTO organisation_types VALUES ('state','f','250000'),('federal','f','250000');") + op.execute("TRUNCATE TABLE organisation_types CASCADE;") + op.execute("INSERT INTO organisation_types VALUES ('state','f','250000'),('federal','f','250000'),('other','f','250000');") # ### end Alembic commands ###