forked from magda-io/magda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- change kebab-case to camelCase for webhook table column names (as w…
…e didn't quoted the column name it's actually all lowercase --- which is consisten with all other legecy code) - fix typescript test case - in CI pipeline run `cd ..` as a new command so other commands after it would ends up run in wrong directory when previous tests case failed
- Loading branch information
Showing
9 changed files
with
72 additions
and
287 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
16 changes: 8 additions & 8 deletions
16
magda-migrator-registry-db/sql/V2_6__generic_auth_ model.sql
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,11 +1,11 @@ | ||
-- Add owner_id, creator_id & editor_id field to webhooks table | ||
ALTER TABLE webhooks | ||
ADD COLUMN "owner_id" uuid DEFAULT NULL, | ||
ADD COLUMN "creator_id" uuid DEFAULT NULL, | ||
ADD COLUMN "editor_id" uuid DEFAULT NULL, | ||
ADD COLUMN "create_time" timestamptz NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
ADD COLUMN "edit_time" timestamptz NOT NULL DEFAULT CURRENT_TIMESTAMP; | ||
ADD COLUMN ownerId uuid DEFAULT NULL, | ||
ADD COLUMN creatorId uuid DEFAULT NULL, | ||
ADD COLUMN editorId uuid DEFAULT NULL, | ||
ADD COLUMN createTime timestamptz NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
ADD COLUMN editTime timestamptz NOT NULL DEFAULT CURRENT_TIMESTAMP; | ||
|
||
CREATE INDEX webhooks_owner_id_idx ON webhooks USING btree ("owner_id"); | ||
CREATE INDEX webhooks_create_time_idx ON webhooks USING btree ("create_time"); | ||
CREATE INDEX webhooks_create_time_idx ON webhooks USING btree ("edit_time"); | ||
CREATE INDEX webhooks_owner_id_idx ON webhooks USING btree (ownerId); | ||
CREATE INDEX webhooks_create_time_idx ON webhooks USING btree (createTime); | ||
CREATE INDEX webhooks_create_time_idx ON webhooks USING btree (editTime); |
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
Oops, something went wrong.