Multiple changes

This commit is contained in:
Torsten Schulz
2024-06-16 23:03:44 +02:00
parent 4e371f88b1
commit 4f1390b794
17 changed files with 613 additions and 31 deletions

View File

@@ -0,0 +1,15 @@
// migrations/[timestamp]-add-page-title-to-menu-items.js
'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn('menu_items', 'page_title', {
type: Sequelize.STRING,
allowNull: true
});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn('menu_items', 'page_title');
}
};