Skip to content

Commit

Permalink
Merge pull request #490 from perftools/0.21.x-merge-up-into-0.22.x_Bn…
Browse files Browse the repository at this point in the history
…0UilpH
  • Loading branch information
glensc authored Jan 3, 2023
2 parents b7b42de + e648dc1 commit c3b042b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
php-version: 7.2
tools: php-cs-fixer:2.16, cs2pr
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies with composer
run: composer install --no-interaction --no-progress --no-suggest
Expand Down
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/Db/PdoRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,11 @@ public function getStatistics()

public function initSchema(): void
{
$profileColumnType = $this->driverName === 'mysql' ? 'LONGTEXT' : 'TEXT';
$this->pdo->exec(sprintf('
CREATE TABLE IF NOT EXISTS %s (
"id" CHAR(24) PRIMARY KEY,
"profile" TEXT NOT NULL,
"profile" %s NOT NULL,
"url" TEXT NULL,
"SERVER" TEXT NULL,
"GET" TEXT NULL,
Expand All @@ -202,7 +203,7 @@ public function initSchema(): void
"main_mu" INTEGER NOT NULL,
"main_pmu" INTEGER NOT NULL
)
', $this->table));
', $this->table, $profileColumnType));
$this->pdo->exec(sprintf('
CREATE TABLE IF NOT EXISTS %s (
"id" CHAR(24) PRIMARY KEY,
Expand Down
Empty file modified src/Twig/TwigExtension.php
100755 → 100644
Empty file.
Empty file modified tests/Twig/ExtensionTest.php
100755 → 100644
Empty file.

0 comments on commit c3b042b

Please sign in to comment.