Fixed schema issue for import value foreign key being set wrong

This commit is contained in:
Tom Bloor 2017-11-21 11:13:04 +00:00
parent 76a4b2178c
commit d4ad360f38
5 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ __PACKAGE__->add_columns(
size => 255,
},
transaction_id => {
data_type => 'varchar',
data_type => 'integer',
is_foreign_key => 1,
is_nullable => 1,
},

View file

@ -206,7 +206,7 @@ CREATE TABLE "import_values" (
"purchase_date" timestamp NOT NULL,
"purchase_value" character varying(255) NOT NULL,
"org_name" character varying(255) NOT NULL,
"transaction_id" character varying,
"transaction_id" integer,
PRIMARY KEY ("id")
);
CREATE INDEX "import_values_idx_set_id" on "import_values" ("set_id");

View file

@ -206,7 +206,7 @@ CREATE TABLE "import_values" (
"purchase_date" timestamp NOT NULL,
"purchase_value" character varying(255) NOT NULL,
"org_name" character varying(255) NOT NULL,
"transaction_id" character varying,
"transaction_id" integer,
"ignore_value" boolean DEFAULT false NOT NULL,
PRIMARY KEY ("id")
);

View file

@ -220,7 +220,7 @@ CREATE TABLE "import_values" (
"purchase_date" timestamp NOT NULL,
"purchase_value" character varying(255) NOT NULL,
"org_name" character varying(255) NOT NULL,
"transaction_id" character varying,
"transaction_id" integer,
"ignore_value" boolean DEFAULT false NOT NULL,
PRIMARY KEY ("id")
);

View file

@ -18,7 +18,7 @@ CREATE TABLE "import_values" (
"purchase_date" timestamp NOT NULL,
"purchase_value" character varying(255) NOT NULL,
"org_name" character varying(255) NOT NULL,
"transaction_id" character varying,
"transaction_id" integer,
PRIMARY KEY ("id")
);
CREATE INDEX "import_values_idx_set_id" on "import_values" ("set_id");