-
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.
Merge pull request #1070 from UniversityOfHelsinkiCS/trunk
Changed pg_restore commands to use docker instead and edited ping_psq…
- Loading branch information
Showing
4 changed files
with
48 additions
and
64 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
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
25 changes: 25 additions & 0 deletions
25
services/backend/shared/migrations_kone/20190703_00_add_usage_table.js
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
up: async (queryInterface, Sequelize) => { | ||
await queryInterface.sequelize.query(` | ||
-- Adminer 4.6.2 PostgreSQL dump | ||
CREATE TABLE IF NOT EXISTS "public"."usage_statistics" ( | ||
"id" character varying(255) NOT NULL, | ||
"username" character varying(255), | ||
"name" character varying(255), | ||
"time" integer, | ||
"admin" boolean, | ||
"method" character varying(255), | ||
"URL" character varying(255), | ||
"status" integer, | ||
"data" jsonb, | ||
CONSTRAINT "usage_statistics_pkey" PRIMARY KEY ("id") | ||
) WITH (oids = false); | ||
-- 2019-07-03 15:39:09.675736+00 | ||
`) | ||
}, | ||
down: async () => { | ||
} | ||
} |