aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures/Database.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2018-09-18 03:34:00 -0300
committerPitu <[email protected]>2018-09-18 03:34:00 -0300
commit4b2b02110b457d8ebeee78e1bdf99eb0660d0626 (patch)
treea6e30208b61e3927c1681c7006241cd0d837de89 /src/api/structures/Database.js
parentStupid hash was working, the size changes for some reason when uploading (diff)
downloadhost.fuwn.me-4b2b02110b457d8ebeee78e1bdf99eb0660d0626.tar.xz
host.fuwn.me-4b2b02110b457d8ebeee78e1bdf99eb0660d0626.zip
We can now download albums yayyyy
Diffstat (limited to 'src/api/structures/Database.js')
-rw-r--r--src/api/structures/Database.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/structures/Database.js b/src/api/structures/Database.js
index dc26afe..76ea006 100644
--- a/src/api/structures/Database.js
+++ b/src/api/structures/Database.js
@@ -34,6 +34,7 @@ class Database {
// table.string('identifier');
// table.boolean('enabled');
// table.boolean('enableDownload').defaultTo(true);
+ table.timestamp('zippedAt');
table.timestamp('createdAt');
table.timestamp('editedAt');
});
@@ -57,6 +58,7 @@ class Database {
if (!await db.schema.hasTable('links')) {
await db.schema.createTable('links', table => {
table.increments();
+ table.integer('userId');
table.integer('albumId');
table.string('identifier');
table.integer('views').defaultTo(0);