Sfoglia il codice sorgente

Add missing column in table 'users'

pyra 6 anni fa
parent
commit
b9cad8e4d5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      database/db.js

+ 2 - 1
database/db.js

@@ -28,6 +28,7 @@ let init = function(db){
 		table.string('username')
 		table.string('password')
 		table.string('token')
+		table.integer('enabled')
 		table.integer('timestamp')
 	}).then(() => {
 		db.table('users').where({username: 'root'}).then((user) => {
@@ -47,4 +48,4 @@ let init = function(db){
 	})
 }
 
-module.exports = init
+module.exports = init