Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple data types by property in form #1634

Merged

Conversation

Daniel-KM
Copy link
Contributor

This is the single feature to manage multiple data types in resource template (see #1614).


$sql = <<<SQL
UPDATE `resource_template_property`
SET `data_type` = CONCAT('["', REPLACE(TRIM(`data_type`), "\n", '","'), '"]')
Copy link
Member

Choose a reason for hiding this comment

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

Quick question here: the handling of newlines and multiple values, that's accounting for a previous version of this that stored the multiple values that way?

I'd imagine we could leave that, and therefore the whole REPLACE out, yeah? And for that matter the check for [ in the WHERE?

Anybody who's been on an intermediate version of one of these could just throw this migration id in the migrations table and skip it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is related to an old version. I removed it.

@zerocrates
Copy link
Member

I believe the initial version of this had changes to import/export, which are now gone. Is that being separated out or what? It's fine to be in this PR along with the rest of what's here.

If I've just caught you in between changes, that's fine also.

@Daniel-KM
Copy link
Contributor Author

I saw that there was the import view that was remaining, but not the controller part. So I rebased and now there is the whole import/export part.

@zerocrates
Copy link
Member

Thanks for bearing with us on all those change requests.

@Daniel-KM Daniel-KM deleted the feature/template_datatypes_multiple branch September 21, 2020 15:02
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.

2 participants