diff options
| author | Zephyrrus <[email protected]> | 2020-07-04 03:25:21 +0300 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-07-04 03:25:21 +0300 |
| commit | 836a01327de6b2af5604bb77a34bc3f73b972178 (patch) | |
| tree | 32e6e7bf6c42bd49d7c89cbdfb82772e9029e82f /src/api/database | |
| parent | feat: refactor some of the queries to returned added/updated data (diff) | |
| download | host.fuwn.me-836a01327de6b2af5604bb77a34bc3f73b972178.tar.xz host.fuwn.me-836a01327de6b2af5604bb77a34bc3f73b972178.zip | |
chore: add nsfw flag to migration
Diffstat (limited to 'src/api/database')
| -rw-r--r-- | src/api/database/migrations/20190221225812_initialMigration.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/database/migrations/20190221225812_initialMigration.js b/src/api/database/migrations/20190221225812_initialMigration.js index a27a08a..4bcea8d 100644 --- a/src/api/database/migrations/20190221225812_initialMigration.js +++ b/src/api/database/migrations/20190221225812_initialMigration.js @@ -16,6 +16,7 @@ exports.up = async knex => { table.increments(); table.integer('userId'); table.string('name'); + table.boolean('nsfw'); table.timestamp('zippedAt'); table.timestamp('createdAt'); table.timestamp('editedAt'); @@ -28,6 +29,7 @@ exports.up = async knex => { table.string('original'); table.string('type'); table.integer('size'); + table.boolean('nsfw'); table.string('hash'); table.string('ip'); table.timestamp('createdAt'); |