mirror of
https://github.com/knex/knex.git
synced 2025-12-28 15:38:41 +00:00
parent
01f5ce4972
commit
d6dc4d2dee
@ -80,7 +80,7 @@ TableCompiler_SQLite3.prototype.index = function(columns, indexName) {
|
||||
|
||||
TableCompiler_SQLite3.prototype.primary =
|
||||
TableCompiler_SQLite3.prototype.foreign = function() {
|
||||
if (this.method !== 'create') {
|
||||
if (this.method !== 'create' && this.method !== 'createIfNot') {
|
||||
console.warn('SQLite3 Foreign & Primary keys may only be added on create');
|
||||
}
|
||||
};
|
||||
@ -136,4 +136,4 @@ TableCompiler_SQLite3.prototype.dropColumn = function(column) {
|
||||
client.TableBuilder = TableBuilder_SQLite3;
|
||||
client.TableCompiler = TableCompiler_SQLite3;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user