From 2cde8096a92c35e9ecc0ce2730d04a377432492f Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Tue, 10 Dec 2019 09:33:37 -0800 Subject: [PATCH] Begin work on delivery_error database tables. No code supports this yet, IIRC. --- sql/supporters-schema.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sql/supporters-schema.sql b/sql/supporters-schema.sql index 4919efa..89ba5ad 100644 --- a/sql/supporters-schema.sql +++ b/sql/supporters-schema.sql @@ -67,6 +67,13 @@ CREATE TABLE "request_type" ( "type" varchar(100) NOT NULL ); +DROP TABLE IF EXISTS "delivery_error"; + +CREATE TABLE "delivery_error" ( + "id" integer NOT NULL PRIMARY KEY, + "error" varchar(300) NOT NULL UNIQUE + ); + DROP TABLE IF EXISTS "email_address"; CREATE TABLE "email_address" ( @@ -76,6 +83,15 @@ CREATE TABLE "email_address" ( "date_encountered" date NOT NULL ); +DROP TABLE IF EXISTS "email_error_log"; + +CREATE TABLE "email_error_log" ( + "email_address_id" integer NOT NULL, + "delivery_error_code_id" integer NOT NULL, + "date_encountered" date NOT NULL, + "comments" TEXT + ); + DROP TABLE IF EXISTS "donor_email_address_mapping"; CREATE TABLE "donor_email_address_mapping" (