diff --git a/server/seeders/merge-election-canonicals.ts b/server/seeders/merge-election-canonicals.ts deleted file mode 100644 index eb17a4b..0000000 --- a/server/seeders/merge-election-canonicals.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable no-console */ - -import { QueryInterface, Op as Operation } from 'sequelize'; - -export = { - up: async (queryInterface: QueryInterface): Promise => { - const numUpdatedRows = await queryInterface.bulkUpdate( - 'views', - { - canonical: - 'https://apps.texastribune.org/features/2020/general-election-results/embeds/partner/', - }, - { - canonical: { - [Operation.startsWith]: - 'https://apps.texastribune.org/features/2020/general-election-results/embeds/partner/', - }, - } - ); - - console.log('\x1b[33m%s\x1b[0m', `Updated ${numUpdatedRows} rows`); - }, -};