-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) Entities are now created as SQL statements only - this is reflecte…
…d in the SQL files that are run with docker-entrypoint-initdb.d 2) Entities are created as views per default (so no config in the entity creation necessary) 3) Fixed Airflow worker stability 4) Reverted numpy version to prevent error in the installation of dot in the airflow worker
- Loading branch information
1 parent
3420d83
commit 2577ab9
Showing
6 changed files
with
33 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
CREATE SCHEMA IF NOT EXISTS dot_config; | ||
--CREATE SCHEMA IF NOT EXISTS dot_config; | ||
|
||
CREATE TABLE dot_config.dot( | ||
output_schema_suffix VARCHAR(255) NOT NULL DEFAULT 'test' | ||
); | ||
--CREATE TABLE dot_config.dot( | ||
--output_schema_suffix VARCHAR(255) NOT NULL DEFAULT 'test' | ||
--); | ||
|
||
INSERT INTO dot_config.dot(output_schema_suffix) | ||
VALUES('tests'); | ||
--INSERT INTO dot_config.dot(output_schema_suffix) | ||
--VALUES('tests'); | ||
|
||
CREATE TABLE dot_config.dot_db_config( | ||
connection_name VARCHAR(255) PRIMARY KEY, | ||
type VARCHAR(255), | ||
CREATE TABLE airflow.connection( | ||
id INTEGER PRIMARY KEY, | ||
conn_id VARCHAR(255), | ||
conn_type VARCHAR(255), | ||
description VARCHAR(255), | ||
host VARCHAR(255), | ||
user_name VARCHAR(255), | ||
schema VARCHAR(255), | ||
login VARCHAR(255), | ||
password VARCHAR(255), | ||
port VARCHAR(255), | ||
dbname VARCHAR(255), | ||
schema VARCHAR(255), | ||
threads VARCHAR(255) | ||
is_encrypted BOOLEAN, | ||
is_extra_encrypted BOOLEAN, | ||
extra VARCHAR(255) | ||
); | ||
|
||
INSERT INTO dot_config.dot_db_config(connection_name,type,host,user_name,password,port,dbname,schema,threads) | ||
VALUES('dot_db','postgres','dot_db','postgres','','5432','dot_db','dot','4'); | ||
INSERT INTO dot_config.dot_db_config(connection_name,type,host,user_name,password,port,dbname,schema,threads) | ||
VALUES('ScanProject1','postgres','dot_db','postgres','','5432','dot_db','public','4'); | ||
INSERT INTO dot_config.dot_db_config(id,conn_id,conn_type,description,host,schema,login,password,port) | ||
VALUES(1,'dot_db','postgres','dot_db','dot','postgres','','5432'); | ||
--ToDo:Hashthepasswordcolumn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters