Document emoji picker (#4338)

Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
Apoorv Mishra
2023-09-03 18:41:14 +05:30
committed by GitHub
parent 0054b7152e
commit 1c7bb65c7a
57 changed files with 1367 additions and 510 deletions

View File

@@ -0,0 +1,14 @@
'use strict';
module.exports = {
async up (queryInterface, Sequelize) {
await queryInterface.addColumn("revisions", "emoji", {
type: Sequelize.STRING,
allowNull: true,
});
},
async down (queryInterface) {
await queryInterface.removeColumn("revisions", "emoji");
}
};

View File

@@ -0,0 +1,28 @@
"use strict";
const { execSync } = require("child_process");
const path = require("path");
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}`
);
execSync(`node ${scriptPath}`, { stdio: "inherit" });
},
async down() {
// noop
},
};

View File

@@ -0,0 +1,28 @@
"use strict";
const { execSync } = require("child_process");
const path = require("path");
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}`
);
execSync(`node ${scriptPath}`, { stdio: "inherit" });
},
async down() {
// noop
},
};