diff options
| author | Pitu <[email protected]> | 2019-03-12 06:18:19 +0000 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-03-12 06:18:19 +0000 |
| commit | 69dd014f49ceae4f1445071a5b4372f169fe9d57 (patch) | |
| tree | 0a5cf0d26b44248208bfd4ff1b20b9c9e8341297 /src/api/database | |
| parent | stuff (diff) | |
| download | host.fuwn.me-69dd014f49ceae4f1445071a5b4372f169fe9d57.tar.xz host.fuwn.me-69dd014f49ceae4f1445071a5b4372f169fe9d57.zip | |
Add uuids
Diffstat (limited to 'src/api/database')
| -rw-r--r-- | src/api/database/migrations/20190221225812_initialMigration.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/database/migrations/20190221225812_initialMigration.js b/src/api/database/migrations/20190221225812_initialMigration.js index f2192f6..ee54e39 100644 --- a/src/api/database/migrations/20190221225812_initialMigration.js +++ b/src/api/database/migrations/20190221225812_initialMigration.js @@ -1,6 +1,7 @@ exports.up = async knex => { await knex.schema.createTable('users', table => { table.increments(); + table.string('uuid'); table.string('username'); table.string('password'); table.boolean('enabled'); @@ -14,6 +15,7 @@ exports.up = async knex => { await knex.schema.createTable('albums', table => { table.increments(); + table.string('uuid'); table.integer('userId'); table.string('name'); table.timestamp('zippedAt'); @@ -23,6 +25,7 @@ exports.up = async knex => { await knex.schema.createTable('files', table => { table.increments(); + table.string('uuid'); table.integer('userId'); table.string('name'); table.string('original'); @@ -36,6 +39,7 @@ exports.up = async knex => { await knex.schema.createTable('links', table => { table.increments(); + table.string('uuid'); table.integer('userId'); table.integer('albumId'); table.string('identifier'); |