diff options
| author | Pitu <[email protected]> | 2017-01-17 19:05:00 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-17 19:05:00 -0300 |
| commit | ddb6d0df7dafb3da14ce1fd86e1838890432bb8d (patch) | |
| tree | 6b0636c57c12eb71103f63d9ee49d5531f2ebf72 /database | |
| parent | Change from gallery to album (diff) | |
| download | host.fuwn.me-ddb6d0df7dafb3da14ce1fd86e1838890432bb8d.tar.xz host.fuwn.me-ddb6d0df7dafb3da14ce1fd86e1838890432bb8d.zip | |
Database now saves album
Diffstat (limited to 'database')
| -rw-r--r-- | database/db.js | 4 |
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(() => {}) |