Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 30, 2024
1 parent 7999fef commit 25003f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/REUSABLE_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,18 @@ jobs:
tools: phpunit, composer:v2
ini-values: ${{ matrix.php_ini_values }}

- name: mysql version 1
run: mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['13306'] }} -uroot -ppassword -e "SELECT @@VERSION"

- name: Create ${{ matrix.db }} Database
if: ${{ matrix.driver == 'mysql' || matrix.driver == 'mariadb' }}
run: |
sudo systemctl start mysql
mysql -uroot -proot -e 'CREATE DATABASE flarum_test;' --port 13306
- name: mysql version 2
run: mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['13306'] }} -uroot -ppassword -e "SELECT @@VERSION"

- name: Install Composer dependencies
run: composer install
working-directory: ${{ inputs.backend_directory }}
Expand Down
4 changes: 0 additions & 4 deletions framework/core/src/Install/Steps/ConnectToDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ private function mysql(array $config): void

$version = $pdo->query('SELECT VERSION()')->fetchColumn();

echo "MySQL version: $version\n";

if (Str::contains($version, 'MariaDB')) {
if (version_compare($version, '10.3.0', '<')) {
throw new RangeException("MariaDB version ($version) too low. You need at least MariaDB 10.3");
Expand All @@ -85,8 +83,6 @@ private function mariadb(array $config): void

$version = $pdo->query('SELECT VERSION()')->fetchColumn();

echo "MariaDB version: $version\n";

if (version_compare($version, '10.3.0', '<')) {
throw new RangeException("MariaDB version ($version) too low. You need at least MariaDB 10.3");
}
Expand Down

0 comments on commit 25003f3

Please sign in to comment.