aboutsummaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-01-17 19:05:00 -0300
committerPitu <[email protected]>2017-01-17 19:05:00 -0300
commitddb6d0df7dafb3da14ce1fd86e1838890432bb8d (patch)
tree6b0636c57c12eb71103f63d9ee49d5531f2ebf72 /database
parentChange from gallery to album (diff)
downloadhost.fuwn.me-ddb6d0df7dafb3da14ce1fd86e1838890432bb8d.tar.xz
host.fuwn.me-ddb6d0df7dafb3da14ce1fd86e1838890432bb8d.zip
Database now saves album
Diffstat (limited to 'database')
-rw-r--r--database/db.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/database/db.js b/database/db.js
index d641c2e..6c4889b 100644
--- a/database/db.js
+++ b/database/db.js
@@ -2,7 +2,7 @@
let init = function(db, config){
// Create the tables we need to store galleries and files
- db.schema.createTableIfNotExists('gallery', function (table) {
+ db.schema.createTableIfNotExists('albums', function (table) {
table.increments()
table.string('name')
table.timestamps()
@@ -15,7 +15,7 @@ let init = function(db, config){
table.string('type')
table.string('size')
table.string('ip')
- table.integer('galleryid')
+ table.integer('albumid')
table.timestamps()
}).then(() => {})