From 80cc8d0028413e6825567e7b635369a70a0bf07a Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 24 May 2018 10:37:33 +0200 Subject: Emit event when running ./occ db:add-missing-indices This allows apps to listen to this event in order to also update indecies there. Signed-off-by: Roeland Jago Douma --- lib/public/IDBConnection.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/public/IDBConnection.php') diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php index f0783d5231a..024e759de6e 100644 --- a/lib/public/IDBConnection.php +++ b/lib/public/IDBConnection.php @@ -45,6 +45,9 @@ use OCP\DB\QueryBuilder\IQueryBuilder; * @since 6.0.0 */ interface IDBConnection { + + const ADD_MISSING_INDEXES_EVENT = self::class . '::ADD_MISSING_INDEXES'; + /** * Gets the QueryBuilder for the connection. * -- cgit v1.2.3