fix: noverify + типы для правил провеки
This commit is contained in:
parent
9680409ba9
commit
90cbd3b2b6
10 changed files with 319 additions and 300 deletions
|
|
@ -33,7 +33,7 @@ class JsonInstall {
|
|||
}
|
||||
|
||||
function missingTables($tables) {
|
||||
$actual_tables = $this->db_manager->GetAllTableNames();
|
||||
$actual_tables = $this->db_manager->getAllTableNames();
|
||||
$missingTables = [];
|
||||
foreach ($tables as $table) {
|
||||
if (!in_array($table, $actual_tables))
|
||||
|
|
@ -118,7 +118,7 @@ class JsonInstall {
|
|||
|
||||
//Выполнение действий
|
||||
foreach ($actions as $action) {
|
||||
$this->db_manager->ExecuteAction($action, $dbfill_file_path);
|
||||
$this->db_manager->executeAction($action, $dbfill_file_path);
|
||||
}
|
||||
} else {
|
||||
echo "Invalid dbfill.json";
|
||||
|
|
@ -133,13 +133,13 @@ class JsonInstall {
|
|||
$pg = $this->db_manager->db->isPostgres();
|
||||
if ($pg) {
|
||||
foreach ($this->serialColumns as $serialColumn) {
|
||||
$this->db_manager->UpdateSerial($serialColumn["table"], $serialColumn["column"]);
|
||||
$this->db_manager->updateSerial($serialColumn["table"], $serialColumn["column"]);
|
||||
}
|
||||
|
||||
|
||||
foreach ($initActions as $action) {
|
||||
if ($action["type"] == "alterReference") {
|
||||
$this->db_manager->ExecuteAction($action);
|
||||
$this->db_manager->executeAction($action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Класс оболочка для PDOStatement для замены Creole
|
||||
* Класс оболочка для PDOStatement для замены Creole
|
||||
*/
|
||||
namespace ctiso\Database;
|
||||
use PDO,
|
||||
ctiso\Database;
|
||||
|
||||
class Statement
|
||||
class Statement
|
||||
{
|
||||
protected $limit = null;
|
||||
protected $offset = null;
|
||||
|
|
@ -16,12 +16,12 @@ class Statement
|
|||
protected $conn;
|
||||
protected $query;
|
||||
|
||||
function __construct($query, $conn/*: Database*/) {
|
||||
function __construct($query, $conn/*: Database*/) {
|
||||
$this->query = $query;
|
||||
$this->conn = $conn;
|
||||
}
|
||||
|
||||
function setInt($n, $value) {
|
||||
|
||||
function setInt($n, $value) {
|
||||
$this->binds [] = [$n, $value, PDO::PARAM_INT];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue