-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extend admin api to support proxy participants (#1038)
* feat: extend admin api to support proxy participants * image revert * audit * changes * changes * add filter * update swagger
- Loading branch information
Showing
14 changed files
with
309 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict' | ||
|
||
exports.up = async (knex) => { | ||
return await knex.schema.hasTable('participant').then(function(exists) { | ||
if (exists) { | ||
return knex.schema.alterTable('participant', (t) => { | ||
t.boolean('isProxy').defaultTo(false).notNullable() | ||
|
||
}) | ||
} | ||
}) | ||
} | ||
|
||
exports.down = function (knex) { | ||
return knex.schema.alterTable('participant', (t) => { | ||
t.dropColumn('isProxy') | ||
}) | ||
} |
Oops, something went wrong.