From 3de49ac4b95d4bb39e1b5e5322dbaa5e5533639c Mon Sep 17 00:00:00 2001 From: Cody Myers Date: Tue, 9 Jan 2024 09:58:33 -0500 Subject: [PATCH] [COST-3394] Migration to clean up old column for cost category. (#4821) --- ...316_remove_openshiftcostcategory_namespace.py | 16 ++++++++++++++++ koku/reporting/provider/ocp/models.py | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 koku/reporting/migrations/0316_remove_openshiftcostcategory_namespace.py diff --git a/koku/reporting/migrations/0316_remove_openshiftcostcategory_namespace.py b/koku/reporting/migrations/0316_remove_openshiftcostcategory_namespace.py new file mode 100644 index 0000000000..c3e4758da6 --- /dev/null +++ b/koku/reporting/migrations/0316_remove_openshiftcostcategory_namespace.py @@ -0,0 +1,16 @@ +# Generated by Django 3.2.22 on 2023-12-04 20:26 +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("reporting", "0315_openshiftcostcategorynamespace"), + ] + + operations = [ + migrations.RemoveField( + model_name="openshiftcostcategory", + name="namespace", + ), + ] diff --git a/koku/reporting/provider/ocp/models.py b/koku/reporting/provider/ocp/models.py index ed935019bc..5396d6f451 100644 --- a/koku/reporting/provider/ocp/models.py +++ b/koku/reporting/provider/ocp/models.py @@ -295,7 +295,6 @@ class Meta: description = models.TextField() source_type = models.TextField() system_default = models.BooleanField(null=False, default=False) - namespace = ArrayField(models.TextField()) label = ArrayField(models.TextField())