mirror of
https://github.com/sigmasternchen/mobmash.click
synced 2025-03-15 08:09:02 +00:00
fix: Deprecation warning for PHP 8.2
This commit is contained in:
parent
234e7d50aa
commit
30dff25191
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ function ensureMigrationsTable(): void {
|
||||||
|
|
||||||
if ($pdo->query(<<<EOF
|
if ($pdo->query(<<<EOF
|
||||||
SELECT tablename FROM pg_tables
|
SELECT tablename FROM pg_tables
|
||||||
WHERE schemaname = 'public' AND tablename = '${MIGRATION_TABLE}'
|
WHERE schemaname = 'public' AND tablename = '{$MIGRATION_TABLE}'
|
||||||
EOF
|
EOF
|
||||||
)->rowCount() != 0) {
|
)->rowCount() != 0) {
|
||||||
return;
|
return;
|
||||||
|
@ -47,7 +47,7 @@ function getAppliedMigrations(): array {
|
||||||
global $MIGRATION_TABLE;
|
global $MIGRATION_TABLE;
|
||||||
|
|
||||||
$result = $pdo->query(<<<EOF
|
$result = $pdo->query(<<<EOF
|
||||||
SELECT * FROM ${MIGRATION_TABLE}
|
SELECT * FROM {$MIGRATION_TABLE}
|
||||||
EOF);
|
EOF);
|
||||||
|
|
||||||
$migrations = [];
|
$migrations = [];
|
||||||
|
@ -93,7 +93,7 @@ function applyMigration(int $id, string $file) {
|
||||||
executeSqlScript($sql, $file);
|
executeSqlScript($sql, $file);
|
||||||
|
|
||||||
$statement = $pdo->prepare(<<<EOF
|
$statement = $pdo->prepare(<<<EOF
|
||||||
INSERT INTO ${MIGRATION_TABLE}
|
INSERT INTO {$MIGRATION_TABLE}
|
||||||
(id, file) VALUES
|
(id, file) VALUES
|
||||||
(?, ?)
|
(?, ?)
|
||||||
EOF);
|
EOF);
|
||||||
|
|
Loading…
Reference in a new issue