ditojs / dito

Dito.js is a declarative and modern web framework with a focus on API driven development, based on Objection.js, Koa.js and Vue.js – Developed at Lineto by Jürg Lehni and made available by Lineto in 2018 under the MIT license
https://lineto.com
MIT License
82 stars 8 forks source link

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

Closed puckey closed 1 year ago

puckey commented 4 years ago

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')
}
lehni commented 4 years ago

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

lehni commented 1 year ago

Isn't this still a problem?