From c5575cdc01e940d8426bdcc44be4a041966b4ca6 Mon Sep 17 00:00:00 2001 From: ddangelorb Date: Sun, 15 Aug 2021 08:53:52 -0300 Subject: [PATCH] First run --- db/ddl.sql | 4 ++-- load/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/ddl.sql b/db/ddl.sql index f65838a..a8dde35 100644 --- a/db/ddl.sql +++ b/db/ddl.sql @@ -26,13 +26,13 @@ CREATE TABLE IF NOT EXISTS users_rolesprovider_activationkey ( roles_id INT NOT NULL, activationkey uuid NOT NULL, FOREIGN KEY (users_id) REFERENCES users (id), - FOREIGN KEY (roles_id) REFERENCES roles (id), + FOREIGN KEY (roles_id) REFERENCES roles (id) ); CREATE TABLE IF NOT EXISTS educemaden_organizations ( id INT NOT NULL, active VARCHAR(20) NULL, - name VARCHAR(255) NOT NULL + name VARCHAR(255) NOT NULL, creation_date varchar(50) NULL, inep_code varchar(100) NULL, phone varchar(100) NOT NULL, diff --git a/load/README.md b/load/README.md index 8506ff6..af95474 100644 --- a/load/README.md +++ b/load/README.md @@ -13,6 +13,6 @@ Once the project setup was finished successfully, follow the steps below: ```console $ psql -d wpdauth -c "TRUNCATE TABLE educemaden_organizations;" - $ psql -c wpdauth "COPY educemaden_organizations FROM 'educacao.cemaden-organization-dump.csv' DELIMITER ',' CSV HEADER;" + $ psql -d wpdauth -c "COPY educemaden_organizations FROM '//educacao.cemaden-organization-dump.csv' DELIMITER ',' CSV HEADER;" $ psql -d wpdauth -c "SELECT * FROM educemaden_organizations;" ``` \ No newline at end of file