Skip to content

Commit

Permalink
v2.1.14 (#155)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
8 people authored Aug 14, 2024
1 parent d913e6b commit 3c5455a
Show file tree
Hide file tree
Showing 5 changed files with 854 additions and 8 deletions.
2 changes: 1 addition & 1 deletion load.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: SQLite Database Integration
* Description: SQLite database driver drop-in.
* Author: The WordPress Team
* Version: 2.1.13
* Version: 2.1.14
* Requires PHP: 7.0
* Textdomain: sqlite-database-integration
*
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: wordpressdotorg, aristath
Requires at least: 6.4
Tested up to: 6.6.1
Requires PHP: 7.0
Stable tag: 2.1.13
Stable tag: 2.1.14
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: performance, database
Expand Down
21 changes: 21 additions & 0 deletions tests/WP_SQLite_Query_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,27 @@ public function testOnDuplicateKeyWithUnnamedKeys() {
);
}

public function testOnCreateTableIfNotExistsWithIndexAdded() {
$this->assertQuery(
'CREATE TABLE IF not EXISTS `test` (
`id` INT,
`name` VARCHAR(255),
`other` VARCHAR(255),
PRIMARY KEY (id),
UNIQUE KEY (name)
);'
);
$this->assertQuery(
'CREATE TABLE if NOT ExisTS `test` (
`id` INT,
`name` VARCHAR(255),
`other` VARCHAR(255),
PRIMARY KEY (id),
UNIQUE KEY (name)
);'
);
}

public function testShowColumns() {

$query = 'SHOW COLUMNS FROM wp_posts';
Expand Down
Loading

0 comments on commit 3c5455a

Please sign in to comment.