|
|
@ -437,7 +437,7 @@ def create_database(cur, con): |
|
|
|
cur.execute(sql) |
|
|
|
|
|
|
|
sql = "Create table marketplaces_status (market_id integer NOT NULL, date_inserted date NOT NULL, " \ |
|
|
|
"listings integer NOT NULL, descriptions integer NOT NULL, status bit(1) NOT NULL, date_reference date NOT NULL " \ |
|
|
|
"listings integer NOT NULL, descriptions integer NOT NULL, status bit(1) NOT NULL, date_reference date NOT NULL, " \ |
|
|
|
"CONSTRAINT marketplaces_log_pkey PRIMARY KEY (market_id, date_inserted), " \ |
|
|
|
"CONSTRAINT marketplaces_fk FOREIGN KEY (market_id) REFERENCES marketplaces (market_id))" |
|
|
|
cur.execute(sql) |
|
|
|