* Migrations, models, commands * ui * Move starred hint to location state * lint * tsc * refactor * Add collection empty state in expanded sidebar * Add empty placeholder within starred collections * Drag and drop improves, Relative refactor * fix: Starring untitled draft leaves empty space * fix: Creating draft in starred collection shouldnt open main * fix: Dupe drop cursor * Final fixes * fix: Canonical redirect replaces starred location state * fix: Don't show reorder cursor at the top of collection with no permission to edit when dragging
35 lines
821 B
JavaScript
35 lines
821 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await queryInterface.addColumn("stars", "collectionId", {
|
|
type: Sequelize.UUID,
|
|
allowNull: true,
|
|
references: {
|
|
model: "collections",
|
|
},
|
|
});
|
|
await queryInterface.changeColumn("stars", "documentId", {
|
|
type: Sequelize.UUID,
|
|
allowNull: true
|
|
});
|
|
await queryInterface.changeColumn("stars", "documentId", {
|
|
type: Sequelize.UUID,
|
|
references: {
|
|
model: "documents",
|
|
},
|
|
});
|
|
await queryInterface.changeColumn("stars", "userId", {
|
|
type: Sequelize.UUID,
|
|
allowNull: false,
|
|
references: {
|
|
model: "users",
|
|
},
|
|
});
|
|
},
|
|
|
|
down: async (queryInterface) => {
|
|
await queryInterface.removeColumn("stars", "collectionId");
|
|
}
|
|
};
|