【发布时间】:2021-08-13 08:21:31
【问题描述】:
我已经在驼色外壳中创建了迁移,但是当我运行迁移时,它会自动将其转换为蛇形外壳。我怎样才能让它默认为驼峰式。
public async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id')
table.string('firstName', 50).notNullable()
table.string('lastName', 50).notNullable()
table.string('email', 255).notNullable().unique()
table.string('password', 180).notNullable()
table.string('rememberMeToken').nullable()
table.timestamp('createdAt', { useTz: true })
table.timestamp('updatedAt', { useTz: true })
})
}
【问题讨论】:
标签: postgresql adonis.js lucid adonisjs-ace