Adding a new custom table allows varchar to be a foreign key but edit relations does not

Created on 5 August 2022, over 2 years ago
Updated 12 February 2024, 9 months ago

In the AddViewsCustomTable.php file line 192 I see this

$int_types = ['tinyint', 'smallint', 'mediumint', 'int', 'bigint', 'varchar'];

This allows all of these data types to be available as foreign keys. However in EditTableRelations.php I see this

$int_types = ['tinyint', 'smallint', 'mediumint', 'int', 'bigint'];

So none of the varchar fields are available when you try to edit a custom table definition. Is there any reason why varchar fields are allowed when creating tables but not when editing them? Or is it a bug?

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States anoopjohn Washington D. C.

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024