Skip to content

Commit 707a1d1

Browse files
fix: Json column migration generation (#339)
Co-authored-by: Nicola Marcacci Rossi <nicola@smartive.ch>
1 parent d3ad3b4 commit 707a1d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/migrations/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ export class MigrationGenerator {
677677
col();
678678
break;
679679
case 'json':
680-
this.writer.writeLine(`table.json('${typeToField(name)}');`);
680+
col(`table.json('${typeToField(name)}')`);
681681
break;
682682
case 'custom':
683683
throw new Error(`Can't create a column for ${name} because it's a custom field`);

0 commit comments

Comments
 (0)