-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: download valid xls file with search param
- Loading branch information
1 parent
0b55709
commit 7612eab
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/database/migrations/20220515223227-re-populate-virtual-tables.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
'use strict'; | ||
|
||
export default { | ||
async up(queryInterface) { | ||
queryInterface.sequelize.query(`INSERT INTO projects_fts SELECT | ||
warehouseProjectId, | ||
orgUid, | ||
currentRegistry, | ||
projectId, | ||
registryOfOrigin, | ||
originProjectId, | ||
program, | ||
projectName, | ||
projectLink, | ||
projectDeveloper, | ||
sector, | ||
coveredByNDC, | ||
projectType, | ||
projectTags, | ||
ndcInformation, | ||
projectStatus, | ||
projectStatusDate, | ||
unitMetric, | ||
methodology, | ||
validationBody, | ||
validationDate, | ||
timeStaged, | ||
description | ||
FROM projects`); | ||
}, | ||
|
||
down() { | ||
return Promise.resolve(); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters