From 37b79ccacb27d494baaa41da22795897463d2aae Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 7 Aug 2026 12:47:47 +0200 Subject: [PATCH] fix: Mark interfaces as Consumable Signed-off-by: Carl Schwan --- lib/public/DB/ISchemaWrapper.php | 2 ++ lib/public/DB/Schema/IColumn.php | 3 +++ lib/public/DB/Schema/IIndex.php | 3 +++ lib/public/DB/Schema/ITable.php | 3 +++ 4 files changed, 11 insertions(+) diff --git a/lib/public/DB/ISchemaWrapper.php b/lib/public/DB/ISchemaWrapper.php index 42230a2dc58..cc94f1035b3 100644 --- a/lib/public/DB/ISchemaWrapper.php +++ b/lib/public/DB/ISchemaWrapper.php @@ -9,6 +9,7 @@ namespace OCP\DB; use Doctrine\DBAL\Exception; use Doctrine\DBAL\Platforms\AbstractPlatform; +use OCP\AppFramework\Attribute\Consumable; use OCP\DB\Schema\ITable; /** @@ -21,6 +22,7 @@ use OCP\DB\Schema\ITable; * * @since 13.0.0 */ +#[Consumable(since: '13.0.0')] interface ISchemaWrapper { /** * @throws Schema\SchemaException diff --git a/lib/public/DB/Schema/IColumn.php b/lib/public/DB/Schema/IColumn.php index c249ed586c2..5b637f27031 100644 --- a/lib/public/DB/Schema/IColumn.php +++ b/lib/public/DB/Schema/IColumn.php @@ -9,11 +9,14 @@ declare(strict_types=1); namespace OCP\DB\Schema; +use OCP\AppFramework\Attribute\Consumable; + /** * Object representation of a column. * * @since 35.0.0 */ +#[Consumable(since: '35.0.0')] interface IColumn { /** * @param mixed[] $options diff --git a/lib/public/DB/Schema/IIndex.php b/lib/public/DB/Schema/IIndex.php index 66a650db61f..f8b467ed632 100644 --- a/lib/public/DB/Schema/IIndex.php +++ b/lib/public/DB/Schema/IIndex.php @@ -9,11 +9,14 @@ declare(strict_types=1); namespace OCP\DB\Schema; +use OCP\AppFramework\Attribute\Consumable; + /** * Object representation of an index. * * @since 35.0.0 */ +#[Consumable(since: '35.0.0')] interface IIndex { /** * Returns the name of this index. diff --git a/lib/public/DB/Schema/ITable.php b/lib/public/DB/Schema/ITable.php index 7a0bff6f6ba..72e4d9384d9 100644 --- a/lib/public/DB/Schema/ITable.php +++ b/lib/public/DB/Schema/ITable.php @@ -9,11 +9,14 @@ declare(strict_types=1); namespace OCP\DB\Schema; +use OCP\AppFramework\Attribute\Consumable; + /** * Object representation of a table. * * @since 35.0.0 */ +#[Consumable(since: '35.0.0')] interface ITable { /** * Returns the name of this table.