Skip to content

Commit 7dc56c3

Browse files
committed
test(spanner): fix schema mismatches for partitionedDml and PgQueryTest
1 parent 6f74d5e commit 7dc56c3

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

Spanner/tests/System/PgPartitionedDmlTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ public function testPdml()
4747

4848
$db = self::$database;
4949

50-
$db->updateDdl('CREATE TABLE IF NOT EXISTS ' . self::PDML_TABLE . '(
51-
id bigint NOT NULL,
52-
stringField varchar(1024),
53-
boolField BOOL,
54-
PRIMARY KEY(id)
55-
)')->pollUntilComplete();
5650

5751
$this->seedTable();
5852

Spanner/tests/System/PgSystemTestCaseTrait.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,23 @@ protected static function setUpTestDatabase(): void
120120
commitTimestamp spanner.commit_timestamp NOT NULL,
121121
PRIMARY KEY(id)
122122
)',
123-
'CREATE TABLE IF NOT EXISTS pgPartitionedDml (
123+
'CREATE TABLE IF NOT EXISTS partitionedDml (
124124
id bigint NOT NULL,
125-
value bigint,
125+
stringField varchar(1024),
126+
boolField BOOL,
126127
PRIMARY KEY (id)
127128
)',
128129
'CREATE TABLE IF NOT EXISTS PgQueryTest (
129130
id bigint NOT NULL,
130-
name character varying NOT NULL,
131-
birthday date,
131+
name varchar(1024),
132+
registered bool,
133+
age numeric,
134+
rating float,
135+
bytes_col bytea,
136+
created_at timestamptz,
137+
dt date,
138+
data jsonb,
139+
weight float4,
132140
PRIMARY KEY (id)
133141
)',
134142
'CREATE TABLE IF NOT EXISTS ' . self::TEST_TABLE_NAME . ' (

Spanner/tests/System/SystemTestCaseTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ private static function setUpTestDatabase(): void
147147
) PRIMARY KEY (id)',
148148
'CREATE TABLE IF NOT EXISTS partitionedDml (
149149
id INT64 NOT NULL,
150-
value INT64
150+
stringField STRING(MAX),
151+
boolField BOOL
151152
) PRIMARY KEY (id)',
152153
'CREATE TABLE IF NOT EXISTS ReadTable (
153154
id INT64 NOT NULL,

0 commit comments

Comments
 (0)