commit | 48e9bab7237448c7fabfef1721f2ac48e6b77822 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Mon Feb 20 15:28:59 2023 +0100 |
committer | Serge Bazanski <serge@monogon.tech> | Tue Feb 21 09:15:14 2023 +0000 |
tree | 165b4e9b78acdbbd4ac0521721acfed1f1dad578 | |
parent | c8fc902aab9fb7a00a4241ebd31df31b00d9a1d1 [diff] |
cloud/bmdb: add up/down migration test This isn't very exhaustive, but it's enough to catch migration issues which we already had. Change-Id: Ie26b7646bb8b051a613e75cb69a1708f9288a0cc Reviewed-on: https://review.monogon.dev/c/monogon/+/1137 Tested-by: Jenkins CI Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/cloud/bmaas/bmdb/model/migrations/1662136250_initial.down.sql b/cloud/bmaas/bmdb/model/migrations/1662136250_initial.down.sql index 5f336d1..5c0ebe9 100644 --- a/cloud/bmaas/bmdb/model/migrations/1662136250_initial.down.sql +++ b/cloud/bmaas/bmdb/model/migrations/1662136250_initial.down.sql
@@ -1,3 +1,4 @@ DROP TABLE work; DROP TABLE sessions; DROP TABLE machines; +DROP TYPE process; \ No newline at end of file
diff --git a/cloud/bmaas/bmdb/model/migrations/1667232160_agent_tags.down.sql b/cloud/bmaas/bmdb/model/migrations/1667232160_agent_tags.down.sql index 90bb586..8630143 100644 --- a/cloud/bmaas/bmdb/model/migrations/1667232160_agent_tags.down.sql +++ b/cloud/bmaas/bmdb/model/migrations/1667232160_agent_tags.down.sql
@@ -1,3 +1,5 @@ -DROP TABLE machine_provided; -DROP TABLE machine_agent_started; DROP TABLE machine_agent_heartbeat; +DROP TABLE machine_agent_started; +DROP TABLE machine_provided; +DROP TABLE machine_hardware_report; +DROP type provider;
diff --git a/cloud/bmaas/bmdb/model/migrations/1672743627_installation_tags.down.sql b/cloud/bmaas/bmdb/model/migrations/1672743627_installation_tags.down.sql index e69de29..0345be6 100644 --- a/cloud/bmaas/bmdb/model/migrations/1672743627_installation_tags.down.sql +++ b/cloud/bmaas/bmdb/model/migrations/1672743627_installation_tags.down.sql
@@ -0,0 +1,2 @@ +DROP TABLE machine_os_installation_report; +DROP TABLE machine_os_installation_request; \ No newline at end of file