Browse Source

fix: sqlite detect composite pks

Signed-off-by: mertmit <mertmit99@gmail.com>
feat/export
mertmit 2 years ago
parent
commit
865828c9dc
  1. 2
      packages/nocodb/src/lib/db/sql-client/lib/sqlite/SqliteClient.ts

2
packages/nocodb/src/lib/db/sql-client/lib/sqlite/SqliteClient.ts

@ -409,7 +409,7 @@ class SqliteClient extends KnexClient {
response[i].not_nullable = response[i].notnull === 1; response[i].not_nullable = response[i].notnull === 1;
response[i].rqd = response[i].notnull === 1; response[i].rqd = response[i].notnull === 1;
response[i].cdf = response[i].dflt_value; response[i].cdf = response[i].dflt_value;
response[i].pk = response[i].pk === 1; response[i].pk = response[i].pk > 0;
response[i].cop = response[i].cid; response[i].cop = response[i].cid;
// https://stackoverflow.com/a/7906029 // https://stackoverflow.com/a/7906029

Loading…
Cancel
Save