Revoked share links (#664)
* Move to revokation API for share links
* Respect revoked share links
Add documentation for shares endpoints
* 💚
This commit is contained in:
19
server/migrations/20180604191743-revoke-share-links.js
Normal file
19
server/migrations/20180604191743-revoke-share-links.js
Normal file
@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn('shares', 'revokedAt', {
|
||||
type: Sequelize.DATE,
|
||||
allowNull: true
|
||||
});
|
||||
await queryInterface.addColumn('shares', 'revokedById', {
|
||||
type: Sequelize.UUID,
|
||||
allowNull: true,
|
||||
references: {
|
||||
model: 'users',
|
||||
},
|
||||
});
|
||||
},
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeColumn('shares', 'revokedAt');
|
||||
await queryInterface.removeColumn('shares', 'revokedById');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user