I want to create a DB under non-public Schema in PostgreSQL. In knexjs document :
knex.schema.withSchema('public').createTable('users', function (table){
table.increments();
})
My migration code is:
this.withSchema('myschema').create('users', table => {
table.increments()
})
But migration:run returns this error:
TypeError: this.withSchema is not a function
How can I create DB under custom schema?
答案 0 :(得分:0)