issues identified by Davidson CI
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
const STARTING_CREDITS = 3;
|
||||
|
||||
function getDbConnection(): PDO
|
||||
{
|
||||
static $pdo = null;
|
||||
@@ -21,6 +23,9 @@ function getDbConnection(): PDO
|
||||
if (!in_array('credits', $userColumns, true)) {
|
||||
$pdo->exec('ALTER TABLE users ADD COLUMN credits INTEGER NOT NULL DEFAULT 0');
|
||||
}
|
||||
if (!in_array('email_verified_at', $userColumns, true)) {
|
||||
$pdo->exec('ALTER TABLE users ADD COLUMN email_verified_at TEXT');
|
||||
}
|
||||
}
|
||||
|
||||
return $pdo;
|
||||
|
||||
Reference in New Issue
Block a user