Skip to content

Commit

Permalink
Merge pull request datakaveri#505 from shreelakshmijoshi/adding-audit…
Browse files Browse the repository at this point in the history
…-table-schema-changes

Update audit schema
  • Loading branch information
karun-singh authored May 15, 2024
2 parents 5249e09 + 743e716 commit bf11f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE auditing_dmp DROP CONSTRAINT auditing_dmp_pkey CASCADE;
ALTER TABLE auditing_dmp ALTER COLUMN _id DROP DEFAULT;
ALTER TABLE auditing_dmp ALTER COLUMN _id TYPE varchar,
ADD PRIMARY KEY (_id);
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

CREATE TABLE IF NOT EXISTS auditing_dmp
(
_id varchar NOT NULL PRIMARY KEY,
_id uuid DEFAULT uuid_generate_v4 () NOT NULL PRIMARY KEY,
user_id uuid NOT NULL,
api varchar NOT NULL,
method varchar NOT NULL,
Expand Down

0 comments on commit bf11f9e

Please sign in to comment.