mirror of
https://github.com/outline/outline.git
synced 2026-06-30 19:47:28 +03:00
7a5480f12f
* Add showLastModified option to Share models - Add showLastModified column to shares table with migration - Add showLastModified field to client and server Share models - Add 'Show last modified' toggle in share popover (PublicAccess component) - Update shares.update API route to handle showLastModified field - Include share data in documents.info API response for shared documents - Modify DocumentMeta visibility logic to show timestamp when showLastModified is enabled - Add proper type definitions across component hierarchy - Follow existing patterns used by allowIndexing option * Applied automatic fixes * refactor --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
18 lines
403 B
JavaScript
18 lines
403 B
JavaScript
'use strict';
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn("shares", "showLastUpdated", {
|
|
type: Sequelize.BOOLEAN,
|
|
allowNull: false,
|
|
defaultValue: false,
|
|
});
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.removeColumn("shares", "showLastUpdated");
|
|
}
|
|
};
|
|
|