Skip to content

Commit

Permalink
Merge pull request #13 from sourcefuse/GH-12
Browse files Browse the repository at this point in the history
fix(migrations): update the unique constraint on resources entity
  • Loading branch information
yeshamavani authored May 22, 2024
2 parents c2a89da + d0cf11a commit 16d972b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .cz-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = {
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking: "List any BREAKING CHANGES (optional):\n",
footer:
"List any ISSUES CLOSED by this change (optional). E.g.: -31, -34:\n",
"List any ISSUES CLOSED by this change (optional). E.g.: GH-31, GH-34:\n",
confirmCommit: "Are you sure you want to proceed with the commit above?",
},

Expand Down
12 changes: 6 additions & 6 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
extends: ["@commitlint/config-conventional"],
rules: {
'header-max-length': [2, 'always', 100],
'body-leading-blank': [2, 'always'],
'footer-leading-blank': [0, 'always'],
'references-empty': [2, 'never'],
"header-max-length": [2, "always", 100],
"body-leading-blank": [2, "always"],
"footer-leading-blank": [0, "always"],
"references-empty": [2, "never"],
},
parserPreset: {
parserOpts: {
issuePrefixes: ['-'],
issuePrefixes: ["GH-"],
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ CREATE TABLE main.resources(
deleted_on timestamptz,
deleted_by uuid,
CONSTRAINT pk_resources_id_1 PRIMARY KEY (id),
CONSTRAINT idx_resource_ext_id UNIQUE (external_identifier)
CONSTRAINT idx_resource_ext_id UNIQUE (external_identifier,tenant_id)
);

ALTER TABLE main.resources
Expand Down

0 comments on commit 16d972b

Please sign in to comment.