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