chore: format all code files according to prettier rules #5
Merged
inga-lovinde
merged 1 commits from chore-format
into main
10 months ago
@ -1,14 +1,15 @@ |
|||||||
import {MigrationInterface, QueryRunner} from "typeorm"; |
import { MigrationInterface, QueryRunner } from 'typeorm'; |
||||||
|
|
||||||
export class Initial1649937605127 implements MigrationInterface { |
export class Initial1649937605127 implements MigrationInterface { |
||||||
name = 'Initial1649937605127' |
name = 'Initial1649937605127'; |
||||||
|
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> { |
public async up(queryRunner: QueryRunner): Promise<void> { |
||||||
await queryRunner.query(`CREATE TABLE \`transaction\` (\`id\` int NOT NULL, \`amount\` int NOT NULL, \`currency\` varchar(255) NOT NULL, \`client_id\` int NOT NULL, \`date\` varchar(255) NOT NULL, \`commission\` int NOT NULL, \`base_currency\` varchar(255) NOT NULL, \`base_amount\` int NOT NULL, PRIMARY KEY (\`id\`))`); |
await queryRunner.query( |
||||||
|
`CREATE TABLE \`transaction\` (\`id\` int NOT NULL, \`amount\` int NOT NULL, \`currency\` varchar(255) NOT NULL, \`client_id\` int NOT NULL, \`date\` varchar(255) NOT NULL, \`commission\` int NOT NULL, \`base_currency\` varchar(255) NOT NULL, \`base_amount\` int NOT NULL, PRIMARY KEY (\`id\`))`, |
||||||
|
); |
||||||
} |
} |
||||||
|
|
||||||
public async down(queryRunner: QueryRunner): Promise<void> { |
public async down(queryRunner: QueryRunner): Promise<void> { |
||||||
await queryRunner.query(`DROP TABLE \`transaction\``); |
await queryRunner.query(`DROP TABLE \`transaction\``); |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue