Skip to content

Commit 4e1c42f

Browse files
committed
Move version.php to the driver package
1 parent e9bb0ac commit 4e1c42f

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/verify-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Extract version from "version.php"
2323
id: const_version
2424
run: |
25-
VERSION=$(php -r "require 'version.php'; echo SQLITE_DRIVER_VERSION;")
25+
VERSION=$(php -r "require 'packages/wp-mysql-on-sqlite/src/version.php'; echo SQLITE_DRIVER_VERSION;")
2626
echo "const_version=$VERSION" >> $GITHUB_OUTPUT
2727
2828
- name: Compare versions

packages/sqlite-database-integration/load.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Load the "SQLITE_DRIVER_VERSION" constant.
1717
* This constant needs to be updated on plugin release!
1818
*/
19-
require_once __DIR__ . '/version.php';
19+
require_once __DIR__ . '/wp-includes/database/version.php';
2020

2121
define( 'SQLITE_MAIN_FILE', __FILE__ );
2222

packages/sqlite-database-integration/wp-includes/sqlite/db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Load the "SQLITE_DRIVER_VERSION" constant.
1111
*/
12-
require_once dirname( __DIR__, 2 ) . '/version.php';
12+
require_once __DIR__ . '/../database/version.php';
1313

1414
// Require the constants file.
1515
require_once dirname( __DIR__, 2 ) . '/constants.php';

packages/wp-mysql-on-sqlite/src/load.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Load the PDO MySQL-on-SQLite driver and its dependencies.
77
*/
88
require_once __DIR__ . '/php-polyfills.php';
9-
require_once __DIR__ . '/../../../version.php';
9+
require_once __DIR__ . '/version.php';
1010
require_once __DIR__ . '/parser/class-wp-parser-grammar.php';
1111
require_once __DIR__ . '/parser/class-wp-parser.php';
1212
require_once __DIR__ . '/parser/class-wp-parser-node.php';

version.php renamed to packages/wp-mysql-on-sqlite/src/version.php

File renamed without changes.

0 commit comments

Comments
 (0)