mirror of
https://github.com/outline/outline.git
synced 2026-06-26 17:54:24 +03:00
1a02b0d9d7
* Add hashed column for API keys --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
30 lines
571 B
JavaScript
30 lines
571 B
JavaScript
"use strict";
|
|
|
|
const { execFileSync } = require("child_process");
|
|
const path = require("path");
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up() {
|
|
if (
|
|
process.env.NODE_ENV === "test" ||
|
|
process.env.DEPLOYMENT === "hosted"
|
|
) {
|
|
return;
|
|
}
|
|
|
|
const scriptName = path.basename(__filename);
|
|
const scriptPath = path.join(
|
|
process.cwd(),
|
|
"build",
|
|
`server/scripts/${scriptName}`
|
|
);
|
|
|
|
execFileSync("node", [scriptPath], { stdio: "inherit" });
|
|
},
|
|
|
|
async down() {
|
|
// noop
|
|
},
|
|
};
|