Initial commit
This commit is contained in:
14
node_modules/knex/lib/dialects/cockroachdb/crdb-columncompiler.js
generated
vendored
Executable file
14
node_modules/knex/lib/dialects/cockroachdb/crdb-columncompiler.js
generated
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
const ColumnCompiler_PG = require('../postgres/schema/pg-columncompiler.js');
|
||||
|
||||
class ColumnCompiler_CRDB extends ColumnCompiler_PG {
|
||||
uuid(options = { primaryKey: false }) {
|
||||
return (
|
||||
'uuid' +
|
||||
(this.tableCompiler._canBeAddPrimaryKey(options)
|
||||
? ' primary key default gen_random_uuid()'
|
||||
: '')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ColumnCompiler_CRDB;
|
||||
Reference in New Issue
Block a user