Skip to content

Commit

Permalink
fix: unique key cannot be created with TEXT column
Browse files Browse the repository at this point in the history
See:

issue: https://discuss.flarum.org/d/18316-flarum-seo/587

65535 supported by mysql and pgsql (for 2.x)
  • Loading branch information
luceos authored Oct 18, 2024
1 parent 28dae84 commit 31d5c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/2023_02_01_create_seo_meta_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 31d5c4d

Please sign in to comment.