Update ingest axione to add date in refimm table for API
This commit is contained in:
parent
8a1c95f9ad
commit
a3e165ec45
2 changed files with 4 additions and 4 deletions
|
@ -79,9 +79,9 @@ fi
|
|||
|
||||
echo "[+] Create separate table with id immeuble index and its state."
|
||||
cat > "${tmpSql}" <<EOF
|
||||
CREATE TABLE refimm (IdentifiantImmeuble text NOT NULL, EtatImmeuble text NOT NULL);
|
||||
CREATE TABLE refimm (IdentifiantImmeuble text NOT NULL, EtatImmeuble text NOT NULL, DateDebutAcceptationCmdAcces text NOT NULL);
|
||||
CREATE UNIQUE INDEX idx_IdentifiantImmeuble on refimm (IdentifiantImmeuble);
|
||||
INSERT OR REPLACE INTO refimm SELECT IdentifiantImmeuble,EtatImmeuble FROM ipe;
|
||||
INSERT OR REPLACE INTO refimm SELECT IdentifiantImmeuble,EtatImmeuble, DateDebutAcceptationCmdAcces FROM ipe;
|
||||
EOF
|
||||
sqlite3 "${fullDbPath}" < "${tmpSql}"
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
export PATH="/usr/bin/:/bin/:/srv/www/Axione-FTTH-Test/.poetry/bin/"
|
||||
export PATH="/usr/bin/:/bin/:/srv/www/ftth-ipe-map/.poetry/bin"
|
||||
poetry install
|
||||
poetry run gunicorn -b "localhost:${PORT}" --timeout 120 'main:app'
|
||||
poetry run gunicorn -b "localhost:${PORT}" --timeout 120 'main:app'
|
||||
|
|
Loading…
Reference in a new issue