fix: MSSQL - setup + pageTree + page delete

This commit is contained in:
NGPixel
2019-10-25 23:02:33 -04:00
parent ea5c4ea33d
commit 820cc77a83
5 changed files with 53 additions and 36 deletions

View File

@@ -2,7 +2,7 @@ exports.up = knex => {
return knex.schema
.dropTable('pageTree')
.createTable('pageTree', table => {
table.increments('id').primary()
table.integer('id').primary()
table.string('path').notNullable()
table.integer('depth').unsigned().notNullable()
table.string('title').notNullable()
@@ -20,7 +20,7 @@ exports.down = knex => {
return knex.schema
.dropTable('pageTree')
.createTable('pageTree', table => {
table.increments('id').primary()
table.integer('id').primary()
table.string('path').notNullable()
table.integer('depth').unsigned().notNullable()
table.string('title').notNullable()