Skip to content

Commit 3c5455a

Browse files
aristathjeroenpfcostasovobrandonpaytonakirk
authored
v2.1.14 (#155)
Co-authored-by: Jeroen P <[email protected]> Co-authored-by: Rostislav Wolný <[email protected]> Co-authored-by: Brandon Payton <[email protected]> Co-authored-by: Alex Kirk <[email protected]> Co-authored-by: Jan Jakeš <[email protected]> Co-authored-by: Bero <[email protected]> Co-authored-by: Antony Agrios <[email protected]>
1 parent d913e6b commit 3c5455a

File tree

5 files changed

+854
-8
lines changed

5 files changed

+854
-8
lines changed

load.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: SQLite Database Integration
44
* Description: SQLite database driver drop-in.
55
* Author: The WordPress Team
6-
* Version: 2.1.13
6+
* Version: 2.1.14
77
* Requires PHP: 7.0
88
* Textdomain: sqlite-database-integration
99
*

readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributors: wordpressdotorg, aristath
44
Requires at least: 6.4
55
Tested up to: 6.6.1
66
Requires PHP: 7.0
7-
Stable tag: 2.1.13
7+
Stable tag: 2.1.14
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010
Tags: performance, database

tests/WP_SQLite_Query_Tests.php

+21
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,27 @@ public function testOnDuplicateKeyWithUnnamedKeys() {
537537
);
538538
}
539539

540+
public function testOnCreateTableIfNotExistsWithIndexAdded() {
541+
$this->assertQuery(
542+
'CREATE TABLE IF not EXISTS `test` (
543+
`id` INT,
544+
`name` VARCHAR(255),
545+
`other` VARCHAR(255),
546+
PRIMARY KEY (id),
547+
UNIQUE KEY (name)
548+
);'
549+
);
550+
$this->assertQuery(
551+
'CREATE TABLE if NOT ExisTS `test` (
552+
`id` INT,
553+
`name` VARCHAR(255),
554+
`other` VARCHAR(255),
555+
PRIMARY KEY (id),
556+
UNIQUE KEY (name)
557+
);'
558+
);
559+
}
560+
540561
public function testShowColumns() {
541562

542563
$query = 'SHOW COLUMNS FROM wp_posts';

0 commit comments

Comments
 (0)