From d20ab544d75cf504abefae7a2611958bf07103f4 Mon Sep 17 00:00:00 2001
From: Christopher Baines <mail@cbaines.net>
Date: Thu, 21 Jun 2018 23:07:02 +0100
Subject: Remove FinishedTerraformJob

This is no longer necessary, as Que now supports keeping the job
entries around in the que_jobs table.
---
 db/structure.sql | 50 ++------------------------------------------------
 1 file changed, 2 insertions(+), 48 deletions(-)

(limited to 'db/structure.sql')

diff --git a/db/structure.sql b/db/structure.sql
index 31c2571..342e36c 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -240,38 +240,6 @@ CREATE TABLE public.ar_internal_metadata (
 );
 
 
---
--- Name: finished_terraform_jobs; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public.finished_terraform_jobs (
-    id bigint NOT NULL,
-    model_id integer,
-    job_class character varying,
-    created_at timestamp without time zone NOT NULL,
-    updated_at timestamp without time zone NOT NULL
-);
-
-
---
--- Name: finished_terraform_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE public.finished_terraform_jobs_id_seq
-    START WITH 1
-    INCREMENT BY 1
-    NO MINVALUE
-    NO MAXVALUE
-    CACHE 1;
-
-
---
--- Name: finished_terraform_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE public.finished_terraform_jobs_id_seq OWNED BY public.finished_terraform_jobs.id;
-
-
 --
 -- Name: govuk_guix_data_snapshots; Type: TABLE; Schema: public; Owner: -
 --
@@ -588,13 +556,6 @@ CREATE SEQUENCE public.users_id_seq
 ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
 
 
---
--- Name: finished_terraform_jobs id; Type: DEFAULT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public.finished_terraform_jobs ALTER COLUMN id SET DEFAULT nextval('public.finished_terraform_jobs_id_seq'::regclass);
-
-
 --
 -- Name: govuk_guix_data_snapshots id; Type: DEFAULT; Schema: public; Owner: -
 --
@@ -659,14 +620,6 @@ ALTER TABLE ONLY public.ar_internal_metadata
     ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
 
 
---
--- Name: finished_terraform_jobs finished_terraform_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public.finished_terraform_jobs
-    ADD CONSTRAINT finished_terraform_jobs_pkey PRIMARY KEY (id);
-
-
 --
 -- Name: govuk_guix_data_snapshots govuk_guix_data_snapshots_pkey; Type: CONSTRAINT; Schema: public; Owner: -
 --
@@ -920,6 +873,7 @@ INSERT INTO "schema_migrations" (version) VALUES
 ('20180601153537'),
 ('20180601182655'),
 ('20180603120426'),
-('20180621065525');
+('20180621065525'),
+('20180621220505');
 
 
-- 
cgit v1.2.3

