From 5566f9d9e73d45cd4a57157cddf4921131954c88 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 21 Mar 2024 13:10:26 +0100 Subject: [PATCH] fix(DB): nodeType of Contexts is an int Signed-off-by: Arthur Schiwon --- lib/Migration/Version000800Date20240213123743.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Migration/Version000800Date20240213123743.php b/lib/Migration/Version000800Date20240213123743.php index cc9f23430..09669b590 100644 --- a/lib/Migration/Version000800Date20240213123743.php +++ b/lib/Migration/Version000800Date20240213123743.php @@ -84,7 +84,7 @@ protected function haveContextNodeRelationTable(ISchemaWrapper $schema): void { $table->addColumn('id', Types::INTEGER, ['autoincrement' => true, 'notnull' => true]); $table->addColumn('context_id', Types::INTEGER, ['notnull' => true]); $table->addColumn('node_id', Types::INTEGER, ['notnull' => true]); - $table->addColumn('node_type', Types::STRING, ['notnull' => true, 'length' => 50]); + $table->addColumn('node_type', Types::INTEGER, ['notnull' => true]); $table->addColumn('permissions', Types::INTEGER, ['notnull' => true]); $table->setPrimaryKey(['id']);