feat: Allow sorting collections in sidebar (#1870)
closes #1759 Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
14
server/migrations/20210218111237-add-collection-index.js
Normal file
14
server/migrations/20210218111237-add-collection-index.js
Normal file
@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn("collections", "index", {
|
||||
type: Sequelize.TEXT,
|
||||
defaultValue: null,
|
||||
});
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeColumn("collections", "index");
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user