feat: tcin is the primary key now
parent
9f3a4865ce
commit
915f3c2a4c
|
@ -46,7 +46,7 @@ def main():
|
||||||
password=opts.pg_password,
|
password=opts.pg_password,
|
||||||
database=opts.pg_database,
|
database=opts.pg_database,
|
||||||
table=opts.pg_table,
|
table=opts.pg_table,
|
||||||
table_key="gtin13",
|
table_key="tcin",
|
||||||
))
|
))
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
CREATE TABLE IF NOT EXISTS {{ params.output_table }} (
|
CREATE TABLE IF NOT EXISTS {{ params.output_table }} (
|
||||||
gtin13 VARCHAR PRIMARY KEY,
|
tcin VARCHAR PRIMARY KEY,
|
||||||
tcin VARCHAR NOT NULL,
|
gtin13 VARCHAR NOT NULL,
|
||||||
primary_category VARCHAR NOT NULL,
|
primary_category VARCHAR NOT NULL,
|
||||||
materials VARCHAR[],
|
materials VARCHAR[],
|
||||||
packaging INT NOT NULL,
|
packaging INT NOT NULL,
|
||||||
|
|
Loading…
Reference in New Issue