mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
- Previously only domain properties worked with SerpBear. This feature adds the ability to add URL properties as well. - Adds a new field "search_console" in Domain Table. - Adds a new Search Console option in Domain Settings Modal UI. - When the new "This is a URL Property" option is enabled, the exact Property URL should be provided. closes #50
16 lines
597 B
JavaScript
16 lines
597 B
JavaScript
// Migration: Adds search_console field to domain table to assign search console property type, url and api.
|
|
|
|
// CLI Migration
|
|
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.sequelize.transaction(async (t) => {
|
|
await queryInterface.addColumn('domain', 'search_console', { type: Sequelize.DataTypes.STRING }, { transaction: t });
|
|
});
|
|
},
|
|
down: (queryInterface) => {
|
|
return queryInterface.sequelize.transaction(async (t) => {
|
|
await queryInterface.removeColumn('domain', 'search_console', { transaction: t });
|
|
});
|
|
},
|
|
};
|