Skip to content

Commit

Permalink
Fix docs for generatedAlwaysAs (kysely-org#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeee authored and thecodrr committed Sep 3, 2024
1 parent f0ef8e3 commit ca6bab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema/column-definition-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export class ColumnDefinitionBuilder implements OperationNodeSource {
* db.schema
* .createTable('person')
* .addColumn('full_name', 'varchar(255)', (col) => col
* .generatedAlwaysAs("concat(first_name, ' ', last_name)")
* .generatedAlwaysAs(sql`concat(first_name, ' ', last_name)`)
* .stored()
* )
* .execute()
Expand Down

0 comments on commit ca6bab4

Please sign in to comment.