Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Mar 13, 2024
1 parent bac8b39 commit 91fbd46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/operations/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export function dropColumns(mOptions: MigrationOptions): DropColumns {

const columnsStr = formatLines(
columns.map(mOptions.literal),
` DROP ${ifExists ? 'IF EXISTS' : ''}`,
` DROP ${ifExists ? 'IF EXISTS ' : ''}`,
`${cascade ? ' CASCADE' : ''},`
);

Expand Down
2 changes: 1 addition & 1 deletion test/operations/columns/dropColumns.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('operations', () => {

expect(statement).toBeTypeOf('string');
expect(statement).toBe(`ALTER TABLE "distributors"
DROP IF EXISTS"address";`);
DROP IF EXISTS "address";`);
});

it('should return sql statement with schema', () => {
Expand Down

0 comments on commit 91fbd46

Please sign in to comment.