Files
outline/server/migrations/20221112152649-import-document-relationship.js
T
codegen-sh[bot] 97f8d0f265 Separate Prettier and ESLint according to best practices (#9565)
* Separate Prettier and ESLint according to best practices

- Create standalone .prettierrc configuration file
- Remove eslint-plugin-prettier integration from ESLint config
- Replace with eslint-config-prettier to disable conflicting rules
- Remove eslint-plugin-prettier dependency
- Add dedicated format and format:check scripts
- Update lint-staged to run Prettier and ESLint separately
- Format entire codebase with new Prettier configuration

This follows the recommended approach from Prettier documentation:
https://prettier.io/docs/integrating-with-linters#notes

* Remove test comment

---------

Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
2025-07-08 18:01:48 -04:00

48 lines
1.3 KiB
JavaScript

"use strict";
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.sequelize.transaction(async (transaction) => {
await queryInterface.addColumn("documents", "importId", {
type: Sequelize.UUID,
allowNull: true,
references: {
model: "file_operations",
},
transaction,
});
await queryInterface.addColumn("collections", "importId", {
type: Sequelize.UUID,
allowNull: true,
references: {
model: "file_operations",
},
transaction,
});
await queryInterface.addIndex("documents", ["importId"], {
transaction,
});
await queryInterface.addIndex("collections", ["importId"], {
transaction,
});
});
},
async down(queryInterface) {
await queryInterface.sequelize.transaction(async (transaction) => {
await queryInterface.removeIndex("collections", ["importId"], {
transaction,
});
await queryInterface.removeIndex("documents", ["importId"], {
transaction,
});
await queryInterface.removeColumn("collections", "importId", {
transaction,
});
await queryInterface.removeColumn("documents", "importId", {
transaction,
});
});
},
};