Skip to content

Commit cad3037

Browse files
sbarnes-ellenbytechgrdsdev
authored andcommitted
Add "long" type column to kitchen sink test table.
1 parent e708b36 commit cad3037

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

PostgrestTests/Models/KitchenSink.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public class KitchenSink : BaseModel
2121

2222
[Column("int_value")] public int? IntValue { get; set; }
2323

24+
[Column("long_value")] public long? LongValue { get; set; }
25+
2426
[Column("float_value")] public float FloatValue { get; set; }
2527

2628
[Column("double_value")] public double DoubleValue { get; set; }

PostgrestTests/db/00-schema.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ create table "public"."kitchen_sink"
5757
"bool_value" BOOL DEFAULT false,
5858
"unique_value" varchar(255) UNIQUE,
5959
"int_value" INT null,
60+
"long_value" BIGINT null,
6061
"float_value" FLOAT null,
6162
"double_value" DOUBLE PRECISION null,
6263
"datetime_value" timestamp null,

PostgrestTests/db/01-dummy-data.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ INSERT INTO public.kitchen_sink (id,
2525
string_value,
2626
bool_value,
2727
int_value,
28+
long_value,
2829
float_value,
2930
double_value,
3031
datetime_value,
@@ -41,6 +42,7 @@ VALUES ('f3ff356d-5803-43a7-b125-ba10cf10fdcd',
4142
'Im the Kitchen Sink!',
4243
false,
4344
99999,
45+
2147483648,
4446
'99999.0'::float4,
4547
'99999.0'::float8,
4648
'Tue May 24 06:30:00 2022'::timestamp,

0 commit comments

Comments
 (0)