Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
- Chg #390: Remove `yiisoft/json` dependency (@Tigrov)
- Enh #393: Refactor according changes in `db` package (@Tigrov)
- New #391: Add `caseSensitive` option to like condition (@vjik)
- Enh #396: Remove `getCacheKey()` and `getCacheTag()` methods from `Schema` class (@Tigrov)

## 1.3.0 March 21, 2024

Expand Down
24 changes: 0 additions & 24 deletions src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -906,28 +906,4 @@ private function loadTableConstraints(string $tableName, string $returnType): ar

return $result[$returnType];
}

/**
* Returns the cache key for the specified table name.
*
* @param string $name The table name.
*
* @return array The cache key.
*/
protected function getCacheKey(string $name): array
{
return [self::class, ...$this->generateCacheKey(), $this->db->getQuoter()->getRawTableName($name)];
}

/**
* Returns the cache tag name.
*
* This allows {@see refresh()} to invalidate all cached table schemas.
*
* @return string The cache tag name.
*/
protected function getCacheTag(): string
{
return md5(serialize([self::class, ...$this->generateCacheKey()]));
}
}