From 1baaba77fb54021382df9eee25f4f2b9fdc3adbf Mon Sep 17 00:00:00 2001 From: Justin Bennett Date: Wed, 31 Jan 2024 16:11:01 -0500 Subject: [PATCH] Fix migration by adding new column at end of select --- schema/crdb/32.0.0/up.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schema/crdb/32.0.0/up.sql b/schema/crdb/32.0.0/up.sql index cd5cc74099..d6cd1e2cde 100644 --- a/schema/crdb/32.0.0/up.sql +++ b/schema/crdb/32.0.0/up.sql @@ -2,14 +2,14 @@ CREATE OR REPLACE VIEW omicron.public.silo_utilization AS SELECT c.id AS silo_id, s.name AS silo_name, - -- This is the added column - s.discoverable as silo_discoverable, c.cpus_provisioned AS cpus_provisioned, c.ram_provisioned AS memory_provisioned, c.virtual_disk_bytes_provisioned AS storage_provisioned, q.cpus AS cpus_allocated, q.memory_bytes AS memory_allocated, - q.storage_bytes AS storage_allocated + q.storage_bytes AS storage_allocated, + -- This is the added column + s.discoverable as silo_discoverable FROM omicron.public.virtual_provisioning_collection AS c RIGHT JOIN omicron.public.silo_quotas AS q