Skip to content

Commit 94b2056

Browse files
committed
Small fixes for sqlite
1 parent d8b5784 commit 94b2056

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Tqdev/PhpCrudApi/Database/TypeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function __construct(string $driver)
133133
'int4' => 'integer',
134134
'int8' => 'bigint',
135135
'double precision' => 'double',
136-
'datetime' => 'timestamp',
136+
'datetime' => 'timestamp'
137137
],
138138
];
139139

tests/fixtures/blog_sqlite.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ CREATE TABLE "users" (
7979
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
8080
"username" varchar(255) NOT NULL,
8181
"password" varchar(255) NOT NULL,
82-
"location" clob NULL
82+
"location" text NULL
8383
);
8484

8585
INSERT INTO "users" ("id", "username", "password", "location") VALUES (1, 'user1', 'pass1', NULL);
@@ -89,7 +89,7 @@ DROP TABLE IF EXISTS "countries";
8989
CREATE TABLE "countries" (
9090
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
9191
"name" varchar(255) NOT NULL,
92-
"shape" clob NOT NULL
92+
"shape" text NOT NULL
9393
);
9494

9595
INSERT INTO "countries" ("id", "name", "shape") VALUES (1, 'Left', 'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))');

0 commit comments

Comments
 (0)