Begin work on delivery_error database tables.

No code supports this yet, IIRC.
This commit is contained in:
Bradley M. Kuhn 2019-12-10 09:33:37 -08:00
parent 84a73aa0f6
commit 2cde8096a9

View file

@ -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" (