From 31d5c4dcf6fa267b69451e651e3c294fd0b75f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Fri, 18 Oct 2024 10:07:29 +0200 Subject: [PATCH] fix: unique key cannot be created with TEXT column See: issue: https://discuss.flarum.org/d/18316-flarum-seo/587 65535 supported by mysql and pgsql (for 2.x) --- migrations/2023_02_01_create_seo_meta_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/2023_02_01_create_seo_meta_table.php b/migrations/2023_02_01_create_seo_meta_table.php index 5f9c3ff..4445cfd 100644 --- a/migrations/2023_02_01_create_seo_meta_table.php +++ b/migrations/2023_02_01_create_seo_meta_table.php @@ -11,7 +11,7 @@ // Object information $table->integer('object_id'); - $table->text('object_type'); + $table->string('object_type', 65535); // Make the combination Object ID and Object Type unique $table->unique(['object_id', 'object_type']);