mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor: Consolidate .prettierignore patterns (no-changelog) (#4692)
* ⚡ Consolidate Prettier ignore patterns * ⚡ Let Prettier select file types to format * 🎨 Apply formatting
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import config from '@/config';
|
||||
import {
|
||||
loadSurveyFromDisk,
|
||||
logMigrationEnd,
|
||||
logMigrationStart,
|
||||
} from '@db/utils/migrationHelpers';
|
||||
import { loadSurveyFromDisk, logMigrationEnd, logMigrationStart } from '@db/utils/migrationHelpers';
|
||||
|
||||
export class CreateUserManagement1646992772331 implements MigrationInterface {
|
||||
name = 'CreateUserManagement1646992772331';
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
import config from '@/config';
|
||||
import {
|
||||
logMigrationEnd,
|
||||
logMigrationStart,
|
||||
} from '@db/utils/migrationHelpers';
|
||||
import { logMigrationEnd, logMigrationStart } from '@db/utils/migrationHelpers';
|
||||
|
||||
export class CommunityNodes1652254514001 implements MigrationInterface {
|
||||
name = 'CommunityNodes1652254514001';
|
||||
@@ -22,7 +19,7 @@ export class CommunityNodes1652254514001 implements MigrationInterface {
|
||||
`"createdAt" datetime(3) NOT NULL DEFAULT 'STRFTIME(''%Y-%m-%d %H:%M:%f'', ''NOW'')',` +
|
||||
`"updatedAt" datetime(3) NOT NULL DEFAULT 'STRFTIME(''%Y-%m-%d %H:%M:%f'', ''NOW'')',` +
|
||||
`PRIMARY KEY("packageName")` +
|
||||
`);`
|
||||
`);`,
|
||||
);
|
||||
|
||||
await queryRunner.query(
|
||||
@@ -33,7 +30,7 @@ export class CommunityNodes1652254514001 implements MigrationInterface {
|
||||
`"package" char(214) NOT NULL,` +
|
||||
`PRIMARY KEY("name"),` +
|
||||
`FOREIGN KEY("package") REFERENCES "${tablePrefix}installed_packages"("packageName") ON DELETE CASCADE ON UPDATE CASCADE` +
|
||||
`);`
|
||||
`);`,
|
||||
);
|
||||
logMigrationEnd(this.name);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
import { logMigrationEnd, logMigrationStart } from '@db/utils/migrationHelpers';
|
||||
import config from '@/config';;
|
||||
import config from '@/config';
|
||||
|
||||
export class IntroducePinData1654089251344 implements MigrationInterface {
|
||||
name = 'IntroducePinData1654089251344';
|
||||
@@ -20,7 +20,9 @@ export class IntroducePinData1654089251344 implements MigrationInterface {
|
||||
async down(queryRunner: QueryRunner): Promise<void> {
|
||||
const tablePrefix = config.getEnv('database.tablePrefix');
|
||||
|
||||
await queryRunner.query(`ALTER TABLE \`${tablePrefix}workflow_entity\` RENAME TO "temporary_workflow_entity"`);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE \`${tablePrefix}workflow_entity\` RENAME TO "temporary_workflow_entity"`,
|
||||
);
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE \`${tablePrefix}workflow_entity\` (
|
||||
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(128) NOT NULL, "active" boolean NOT NULL, "nodes" text NOT NULL, "connections" text NOT NULL, "createdAt" datetime NOT NULL, "updatedAt" datetime NOT NULL, "settings" text, "staticData" text`,
|
||||
|
||||
Reference in New Issue
Block a user