Skip to content

Instantly share code, notes, and snippets.

@simong
Created October 29, 2014 18:16
Show Gist options
  • Select an option

  • Save simong/ba6ae3f118133c4b9fcf to your computer and use it in GitHub Desktop.

Select an option

Save simong/ba6ae3f118133c4b9fcf to your computer and use it in GitHub Desktop.
{ [SequelizeUniqueConstraintError]
name: 'SequelizeUniqueConstraintError',
message: undefined,
parent:
{ [error: duplicate key value violates unique constraint "Tenants_pkey"]
name: 'error',
length: 179,
severity: 'ERROR',
code: '23505',
detail: 'Key (id)=(1) already exists.',
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
file: 'nbtinsert.c',
line: '398',
routine: '_bt_check_unique',
sql: 'INSERT INTO "Tenants" ("id","displayName","createdAt","updatedAt") VALUES (DEFAULT,\'Cambridge University\',\'2014-10-29 18:15:44.680 +00:00\',\'2014-10-29 18:15:44.680 +00:00\') RETURNING *;' },
sql: 'INSERT INTO "Tenants" ("id","displayName","createdAt","updatedAt") VALUES (DEFAULT,\'Cambridge University\',\'2014-10-29 18:15:44.680 +00:00\',\'2014-10-29 18:15:44.680 +00:00\') RETURNING *;',
fields: [ 'id' ],
value: [ '1' ],
index: null }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment