Skip to content

Commit

Permalink
fix: only migrate fts if on sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed May 16, 2022
1 parent 1339bfd commit 2a41ca0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

export default {
async up(queryInterface) {
queryInterface.sequelize.query(`INSERT INTO projects_fts SELECT
if (queryInterface.sequelize.getDialect() === 'sqlite') {
await queryInterface.sequelize.query(`INSERT INTO projects_fts SELECT
warehouseProjectId,
orgUid,
currentRegistry,
Expand All @@ -27,6 +28,7 @@ export default {
timeStaged,
description
FROM projects`);
}
},

down() {
Expand Down

0 comments on commit 2a41ca0

Please sign in to comment.