Skip to content

Conversation

@abnegate
Copy link
Member

@abnegate abnegate commented Oct 9, 2023

  • Allow querying array contents using Query::contains

@abnegate abnegate requested a review from fogelito October 9, 2023 07:47

if ($array) {
$type = 'LONGTEXT';
$type = 'JSON';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will have to migrate this on Appwrite

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK
Just saw on MariaDB when trying to create a JSON attribute, It creates this:
genres longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(genres))
While in Mysql it is really a JSON field

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm so we won't need a migration for MariaDB but will for MySQL.. this is a new problem 😅

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can save it as Text + create a key / value Collection for search?

@abnegate abnegate requested a review from fanatic75 October 9, 2023 22:18
Copy link
Contributor

@fanatic75 fanatic75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants