Skip to content

object_type and object_id datastore length inconsistent #2720

@jamar-criteo

Description

@jamar-criteo

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of OpenFGA and the issue still persists.
  • I have searched the OpenFGA Community and have not found a suitable solution or answer.
  • I agree to the terms within the OpenFGA Code of Conduct.

Description

I noticed some inconsistency of column length between the tuple & changelog table on several DB connectors:

  • sqlite link (line 4 & 5 vs line 48 & 49)
    • object_id and object_type should be aligned (VARCHAR(128) vs VARCHAR(256))
  • mysql link
    • object_type should be aligned (VARCHAR(128) vs VARCHAR(256))
    • object_id had been already aligned: link

OpenFGA version

1.10.1

How are you running OpenFGA?

As a binary

What datastore are you using?

MySQL

OpenFGA Flags

N/A

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions