99use Yiisoft \Db \Constraint \Constraint ;
1010use Yiisoft \Db \Constraint \ForeignKeyConstraint ;
1111use Yiisoft \Db \Constraint \IndexConstraint ;
12+ use Yiisoft \Db \Driver \PDO \PdoAbstractSchema ;
1213use Yiisoft \Db \Exception \Exception ;
1314use Yiisoft \Db \Exception \InvalidArgumentException ;
1415use Yiisoft \Db \Exception \InvalidConfigException ;
1516use Yiisoft \Db \Exception \NotSupportedException ;
1617use Yiisoft \Db \Expression \Expression ;
1718use Yiisoft \Db \Helper \ArrayHelper ;
18- use Yiisoft \Db \Schema \AbstractSchema ;
1919use Yiisoft \Db \Schema \Builder \ColumnInterface ;
2020use Yiisoft \Db \Schema \ColumnSchemaInterface ;
2121use Yiisoft \Db \Schema \TableSchemaInterface ;
7373 * array{cid:string, name:string, type:string, notnull:string, dflt_value:string|null, pk:string}
7474 * >
7575 */
76- final class Schema extends AbstractSchema
76+ final class Schema extends PdoAbstractSchema
7777{
7878 /**
7979 * @var array Mapping from physical column types (keys) to abstract column types (values).
@@ -695,7 +695,7 @@ protected function findViewNames(string $schema = ''): array
695695 */
696696 protected function getCacheKey (string $ name ): array
697697 {
698- return array_merge ([self ::class], $ this ->db -> getCacheKey (), [$ this ->getRawTableName ($ name )]);
698+ return array_merge ([self ::class], $ this ->generateCacheKey (), [$ this ->getRawTableName ($ name )]);
699699 }
700700
701701 /**
@@ -707,6 +707,6 @@ protected function getCacheKey(string $name): array
707707 */
708708 protected function getCacheTag (): string
709709 {
710- return md5 (serialize (array_merge ([self ::class], $ this ->db -> getCacheKey ())));
710+ return md5 (serialize (array_merge ([self ::class], $ this ->generateCacheKey ())));
711711 }
712712}
0 commit comments