dito icon indicating copy to clipboard operation
dito copied to clipboard

Migrations always contain table.string('#id') and table.string('#ref')

Open puckey opened this issue 5 years ago • 1 comments

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')
}

puckey avatar Jul 20 '20 10:07 puckey

Good you mention that! I actually have a TODO locally about thtis.

lehni avatar Sep 22 '20 09:09 lehni

Isn't this still a problem?

lehni avatar Jun 15 '23 09:06 lehni