diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php index 5aaf7da..fe15e87 100644 --- a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php +++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php @@ -229,7 +229,7 @@ public static function sqlFunctionSubstringIndex($string, $delimiter, $count) { /** * SQLite compatibility implementation for the RAND() SQL function. */ - public function sqlFunctionRand($seed = NULL) { + public static function sqlFunctionRand($seed = NULL) { if (isset($seed)) { mt_srand($seed); } @@ -243,8 +243,8 @@ public function sqlFunctionRand($seed = NULL) { * a Statement object, that will create a PDOStatement * using the semi-private PDOPrepare() method below. */ - public function prepare($query, $options = array()) { - return new Statement($this, $query, $options); + public function prepare($statement, array $driver_options = array()) { + return new Statement($this, $statement, $driver_options); } /** diff --git a/core/modules/filter/lib/Drupal/filter/FilterPluginManager.php b/core/modules/filter/lib/Drupal/filter/FilterPluginManager.php index f313cca..e09a09e 100644 --- a/core/modules/filter/lib/Drupal/filter/FilterPluginManager.php +++ b/core/modules/filter/lib/Drupal/filter/FilterPluginManager.php @@ -9,6 +9,7 @@ use Drupal\Component\Plugin\PluginManagerBase; use Drupal\Component\Plugin\Factory\DefaultFactory; +use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Language\Language; use Drupal\Core\Plugin\Discovery\AlterDecorator; use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery; @@ -32,7 +33,7 @@ public function __construct(\Traversable $namespaces) { $annotation_namespaces = array('Drupal\filter\Annotation' => $namespaces['Drupal\filter']); $this->discovery = new AnnotatedClassDiscovery('Filter', $namespaces, $annotation_namespaces, 'Drupal\filter\Annotation\Filter'); $this->discovery = new AlterDecorator($this->discovery, 'filter_info'); - $this->discovery = new CacheDecorator($this->discovery, 'filter_plugins:' . language(Language::TYPE_INTERFACE)->langcode, 'cache', array( + $this->discovery = new CacheDecorator($this->discovery, 'filter_plugins:' . language(Language::TYPE_INTERFACE)->langcode, 'cache', CacheBackendInterface::CACHE_PERMANENT, array( 'filter_formats' => TRUE, )); } diff --git a/core/modules/node/node.install b/core/modules/node/node.install index a4cc155..f322efe 100644 --- a/core/modules/node/node.install +++ b/core/modules/node/node.install @@ -89,7 +89,7 @@ function node_schema() { 'fields' => array( 'nid' => array( 'description' => 'The primary identifier for a node.', - 'type' => 'serial', + 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), @@ -207,7 +207,7 @@ function node_schema() { ), 'vid' => array( 'description' => 'The primary identifier for this version.', - 'type' => 'serial', + 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),