mirror of
https://github.com/outline/outline.git
synced 2026-06-30 19:47:28 +03:00
169ad5b025
* add migrations * first pass at API * feat: Updated share dialog UI * tests * test * styling tweaks * feat: Show share state on document * fix: Allow publishing share links for draft docs * test: shares.info
20 lines
450 B
JavaScript
20 lines
450 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await queryInterface.addColumn('shares', 'published', {
|
|
type: Sequelize.BOOLEAN,
|
|
allowNull: false,
|
|
defaultValue: false
|
|
});
|
|
|
|
await queryInterface.sequelize.query(`
|
|
update shares
|
|
set "published" = true
|
|
`);
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
await queryInterface.removeColumn('shares', 'published');
|
|
}
|
|
}; |