diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-04-14 12:59:00 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-04-14 12:59:00 +0300 |
| commit | b154bc7a10e46dc9fa0406996507c4fd410366da (patch) | |
| tree | d6c7a5b4e9a98bb263d7f5fbea2b7bc1918ff47f /classes/Db_Migrations.php | |
| parent | 60606aaa97f80e9a4456816ff060eb499faf8b73 (diff) | |
initial attempt to remove mysql-related stuff from tt-rss
Diffstat (limited to 'classes/Db_Migrations.php')
| -rw-r--r-- | classes/Db_Migrations.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/classes/Db_Migrations.php b/classes/Db_Migrations.php index 7dcfc24b1..62619b377 100644 --- a/classes/Db_Migrations.php +++ b/classes/Db_Migrations.php @@ -88,9 +88,7 @@ class Db_Migrations { $lines = $this->get_lines($version); if (count($lines) > 0) { - // mysql doesn't support transactions for DDL statements - if (Config::get(Config::DB_TYPE) != "mysql") - $this->pdo->beginTransaction(); + $this->pdo->beginTransaction(); foreach ($lines as $line) { Debug::log($line, Debug::LOG_EXTENDED); @@ -107,8 +105,7 @@ class Db_Migrations { else $this->set_version($version); - if (Config::get(Config::DB_TYPE) != "mysql") - $this->pdo->commit(); + $this->pdo->commit(); Debug::log("Migration finished, current version: " . $this->get_version(), Debug::LOG_VERBOSE); |