Revert "[TASK] Remove reference to stddb/tables.sql"
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 13 Feb 2013 16:29:11 +0000 (17:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 13 Feb 2013 16:31:56 +0000 (17:31 +0100)
This reverts commit 3a24fa95a2d92ab299bcf6815a2a64c9756dd110

Change-Id: Ib906bab8ed332e27504ac73f3c17e8ff44b2454a
Related: #45187
Related: #45107
Reviewed-on: https://review.typo3.org/18250
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php

index 2683311..156aa28 100644 (file)
@@ -260,6 +260,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                        $this->cache_fieldType = $fieldInformation['fieldTypes'];
                        $this->cache_primaryKeys = $fieldInformation['primaryKeys'];
                } else {
+                       $this->analyzeCoreTables();
                        $this->analyzeCachingTables();
                        $this->analyzeExtensionTables();
                        $completeFieldInformation = $this->getCompleteFieldInformation();
@@ -268,6 +269,17 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
        }
 
        /**
+        * Handle stddb.sql and caching tables
+        * parse and analyze table definitions
+        *
+        * @return void
+        */
+       protected function analyzeCoreTables() {
+               $coreSql = file_get_contents(PATH_t3lib . 'stddb/tables.sql');
+               $this->parseAndAnalyzeSql($coreSql);
+       }
+
+       /**
         * Loop through caching configurations
         * to find the usage of database backends and
         * parse and analyze table definitions