Explorar el Código

:bug: fix for tale schema

tags/0.0.1
J hace 4 años
padre
commit
127a29d5ee

+ 1
- 1
backend/db/migrations/20220403111101_create_user_passwords_table.js Ver fichero

1
 exports.up = function (knex) {
1
 exports.up = function (knex) {
2
     return knex.schema.createTable('user_identities', function (table) {
2
     return knex.schema.createTable('user_identities', function (table) {
3
         table.increments('user_pw_id').primary()
3
         table.increments('user_pw_id').primary()
4
-        table.increments('user_id').notNullable()
4
+        table.integer('user_id').notNullable()
5
         table.string('uname', 16)
5
         table.string('uname', 16)
6
         table.string('pw', 16)
6
         table.string('pw', 16)
7
         table.boolean('is_deleted').notNullable()
7
         table.boolean('is_deleted').notNullable()

Loading…
Cancelar
Guardar