Skip to content

Commit

Permalink
Use postgres date time in example
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Oct 4, 2024
1 parent ea2411a commit 83cbb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lib/snippets/platforms/postgres.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ part 'postgres.g.dart';
class Users extends Table {
UuidColumn get id => customType(PgTypes.uuid).withDefault(genRandomUuid())();
TextColumn get name => text()();
DateTimeColumn get birthDate => dateTime().nullable()();
Column<PgDate> get birthDate => customType(PgTypes.date).nullable()();
}

@DriftDatabase(tables: [Users])
Expand Down

0 comments on commit 83cbb1d

Please sign in to comment.