← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ilasc/launchpad:db-close-account-job-object into launchpad:db-devel

 

Ioana Lasc has proposed merging ~ilasc/launchpad:db-close-account-job-object into launchpad:db-devel.

Commit message:
Create CloseAccountJobObject for close account celery job

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ilasc/launchpad/+git/launchpad/+merge/400259
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ilasc/launchpad:db-close-account-job-object into launchpad:db-devel.
diff --git a/database/schema/patch-2210-29-0.sql b/database/schema/patch-2210-29-0.sql
new file mode 100644
index 0000000..941ff5f
--- /dev/null
+++ b/database/schema/patch-2210-29-0.sql
@@ -0,0 +1,14 @@
+SET client_min_messages=ERROR;
+
+CREATE TABLE CloseAccountJobObject (
+    id        		SERIAL PRIMARY KEY,
+    job       		INTEGER NOT NULL UNIQUE REFERENCES Job(id),
+    job_type  		INTEGER NOT NULL,
+    date_created 	timestamp without time zone,
+    date_finished 	timestamp without time zone,
+    status		INTEGER,
+    exception		TEXT,
+    username 		TEXT NOT NULL
+);
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 29, 0);