fp/packages/strapi/database/migrations/2023-09-08-drop-vod-videosr...

12 lines
281 B
JavaScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
module.exports = {
async up(knex) {
const hasColumn = await knex.schema.hasColumn('vods', 'video_src');
if (hasColumn) {
await knex.schema.table('vods', (table) => {
table.dropColumn('video_src');
});
}
}
};