dito
dito copied to clipboard
Migrations always contain table.string('#id') and table.string('#ref')
When creating migrations, the tables always include #id and #ref columns:
export async function up(knex) {
await knex.schema
.createTable('channel', table => {
table.increments('id').primary()
table.string('#id')
table.string('#ref')
})
}
export async function down(knex) {
await knex.schema
.dropTableIfExists('channel')
}
Good you mention that! I actually have a TODO locally about thtis.
Isn't this still a problem?