Skip to content

Commit

Permalink
Fix docs for generatedAlwaysAs (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeee authored Aug 11, 2024
1 parent bb08677 commit 1a4456e
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 1a4456e

Please sign in to comment.