From 12eee30ea1ed6a5863e7e936182b0f16b89382ca Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 10 May 2022 08:36:17 -0700 Subject: [PATCH] Added SQL Migrations --- hasura.md | 2 ++ hasura/config.yaml | 1 + hasura/migrations/1652196662942_run_sql_migration/up.sql | 3 +++ src/ipc/suvs.json | 1 + 4 files changed, 7 insertions(+) create mode 100644 hasura.md create mode 100644 hasura/migrations/1652196662942_run_sql_migration/up.sql diff --git a/hasura.md b/hasura.md new file mode 100644 index 0000000..02beaf7 --- /dev/null +++ b/hasura.md @@ -0,0 +1,2 @@ +hasura migrate apply --endpoint https://db.rps.imex.online/ --admin-secret 'Production-ImEXOnlineRPSDataBase' +hasura migrate status --endpoint https://db.rps.imex.online/ --admin-secret 'Production-ImEXOnlineRPSDataBase' \ No newline at end of file diff --git a/hasura/config.yaml b/hasura/config.yaml index 3b809c2..19a8261 100644 --- a/hasura/config.yaml +++ b/hasura/config.yaml @@ -1 +1,2 @@ endpoint: https://rps.bodyshop.app +admin_secret: ImEXRPSDataBase \ No newline at end of file diff --git a/hasura/migrations/1652196662942_run_sql_migration/up.sql b/hasura/migrations/1652196662942_run_sql_migration/up.sql new file mode 100644 index 0000000..bdf05d1 --- /dev/null +++ b/hasura/migrations/1652196662942_run_sql_migration/up.sql @@ -0,0 +1,3 @@ +CREATE INDEX joblines_jobid ON joblines (jobid); +CREATE INDEX jobs_bodyshopid ON jobs (bodyshopid); +CREATE INDEX jobs_close_date ON jobs (close_date); diff --git a/src/ipc/suvs.json b/src/ipc/suvs.json index 0d5ab7c..16183af 100644 --- a/src/ipc/suvs.json +++ b/src/ipc/suvs.json @@ -147,6 +147,7 @@ "TRAX", "UPLANDER", "YUKON", + "YUKON DENALI", "EQUINOX LS", "EQUINOX LT", "EQUINOX PREMIER",