소스 검색

Merge pull request #75 from pyraxo/master

Add missing column in table 'users'
Kana 6 년 전
부모
커밋
1a77649ce3
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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