Skip to content

Commit dd34a7c

Browse files
committed
Improve test coverage
1 parent 487277b commit dd34a7c

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

tests/Provider/SchemaProvider.php

+12
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@ public static function columns(): array
177177
'scale' => null,
178178
'defaultValue' => new Expression("to_timestamp('2002-01-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss')"),
179179
],
180+
'timestamp_local' => [
181+
'type' => 'timestamp',
182+
'dbType' => 'timestamp with local time zone',
183+
'phpType' => 'string',
184+
'primaryKey' => false,
185+
'notNull' => false,
186+
'autoIncrement' => false,
187+
'enumValues' => null,
188+
'size' => 6,
189+
'scale' => null,
190+
'defaultValue' => null,
191+
],
180192
'time_col' => [
181193
'type' => 'time',
182194
'dbType' => 'interval day to second',

tests/Support/Fixture/oci.sql

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ CREATE TABLE "type" (
175175
"blob_col" blob DEFAULT NULL,
176176
"numeric_col" decimal(5,2) DEFAULT 33.22,
177177
"timestamp_col" timestamp DEFAULT to_timestamp('2002-01-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss') NOT NULL,
178+
"timestamp_local" timestamp with local time zone,
178179
"time_col" interval day (0) to second(0) DEFAULT INTERVAL '0 10:33:21' DAY(0) TO SECOND(0),
179180
"interval_day_col" interval day (1) to second(0) DEFAULT INTERVAL '2 04:56:12' DAY(1) TO SECOND(0),
180181
"bool_col" char NOT NULL check ("bool_col" in (0,1)),

tests/Support/Fixture/oci21.sql

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ CREATE TABLE "type" (
1616
"blob_col" blob DEFAULT NULL,
1717
"numeric_col" decimal(5,2) DEFAULT 33.22,
1818
"timestamp_col" timestamp DEFAULT to_timestamp('2002-01-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss') NOT NULL,
19+
"timestamp_local" timestamp with local time zone,
1920
"time_col" interval day (0) to second(0) DEFAULT INTERVAL '0 10:33:21' DAY(0) TO SECOND(0),
2021
"interval_day_col" interval day (1) to second(0) DEFAULT INTERVAL '2 04:56:12' DAY(1) TO SECOND(0),
2122
"bool_col" char NOT NULL check ("bool_col" in (0,1)),

0 commit comments

Comments
 (0)