-
Notifications
You must be signed in to change notification settings - Fork 7
Support field type conversion for Multi Choice fields #7356
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
base: develop
Are you sure you want to change the base?
Changes from all commits
a066d53
fc22b72
cbb199b
98f19f2
beefa2a
9fa7270
e717afa
4c4d519
b8a163d
5a79008
6d55319
002fe51
1837728
0674ec9
4273019
3bb0c5f
f6a4e81
d205e32
6aa0ee7
e75c688
dc1bd5d
4934b5e
2a293ed
daff069
e3d9a7c
646a3bf
4e66d33
79863e8
bd11124
4a5a3e1
901cd43
c34f952
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ | |
| import org.labkey.api.data.PropertyStorageSpec.Index; | ||
| import org.labkey.api.data.TableInfo.IndexDefinition; | ||
| import org.labkey.api.exp.PropertyDescriptor; | ||
| import org.labkey.api.exp.PropertyType; | ||
| import org.labkey.api.exp.property.Domain; | ||
| import org.labkey.api.exp.property.DomainKind; | ||
| import org.labkey.api.util.logging.LogHelper; | ||
|
|
@@ -58,6 +59,7 @@ public class TableChange | |
| private Collection<Constraint> _constraints; | ||
| private Set<String> _indicesToBeDroppedByName; | ||
| private IndexSizeMode _sizeMode = IndexSizeMode.Auto; | ||
| private Map<String, PropertyType> _oldPropTypes; | ||
|
|
||
| /** In most cases, domain knows the storage table name **/ | ||
| public TableChange(Domain domain, ChangeType changeType) | ||
|
|
@@ -329,6 +331,11 @@ public void setForeignKeys(Collection<PropertyStorageSpec.ForeignKey> foreignKey | |
| _foreignKeys = foreignKeys; | ||
| } | ||
|
|
||
| public Map<String, PropertyType> getOldPropTypes() | ||
| { | ||
| return _oldPropTypes; | ||
| } | ||
|
|
||
| public final List<PropertyStorageSpec> toSpecs(Collection<String> columnNames) | ||
| { | ||
| final Domain domain = _domain; | ||
|
|
@@ -349,6 +356,11 @@ public final List<PropertyStorageSpec> toSpecs(Collection<String> columnNames) | |
| .collect(Collectors.toList()); | ||
| } | ||
|
|
||
| public void setOldPropertyTypes(Map<String, PropertyType> oldPropTypes) | ||
| { | ||
| _oldPropTypes = oldPropTypes; | ||
| } | ||
|
Comment on lines
+359
to
+362
|
||
|
|
||
| public enum ChangeType | ||
| { | ||
| CreateTable, | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these comma separated or semi-colon separated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This '{a, b}' format is what's returned by MVFK when casting array to string
array_to_string(core.sort(array_agg(field))). @labkey-matthewb did mention possibly have MVFK to return ARRAY[] instead of string for the array type columns in the future.