mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
Merge remote-tracking branch 'origin/release/0.14' into feat/postgres-improvements
This commit is contained in:
@@ -31,7 +31,11 @@ export class SqliteConnection extends Connection {
|
||||
type,
|
||||
(col: ColumnDefinitionBuilder) => {
|
||||
if (spec.primary) {
|
||||
return col.primaryKey().notNull().autoIncrement();
|
||||
if (spec.type === "integer") {
|
||||
return col.primaryKey().notNull().autoIncrement();
|
||||
}
|
||||
|
||||
return col.primaryKey().notNull();
|
||||
}
|
||||
if (spec.references) {
|
||||
let relCol = col.references(spec.references);
|
||||
|
||||
Reference in New Issue
Block a user