Merge branch 'grid-buttons' of github.com:Budibase/budibase into grid-buttons
This commit is contained in:
commit
bad79618c1
|
@ -45,8 +45,8 @@ jobs:
|
||||||
BUMP_TYPE=${BUMP_TYPE_INPUT:-"patch"}
|
BUMP_TYPE=${BUMP_TYPE_INPUT:-"patch"}
|
||||||
./versionCommit.sh $BUMP_TYPE
|
./versionCommit.sh $BUMP_TYPE
|
||||||
|
|
||||||
|
cd ..
|
||||||
new_version=$(./getCurrentVersion.sh)
|
new_version=$(./scripts/getCurrentVersion.sh)
|
||||||
echo "version=$new_version" >> $GITHUB_OUTPUT
|
echo "version=$new_version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
trigger-release:
|
trigger-release:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "2.13.1",
|
"version": "2.13.2",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|
|
@ -44,6 +44,8 @@
|
||||||
const NUMBER_TYPE = FIELDS.NUMBER.type
|
const NUMBER_TYPE = FIELDS.NUMBER.type
|
||||||
const JSON_TYPE = FIELDS.JSON.type
|
const JSON_TYPE = FIELDS.JSON.type
|
||||||
const DATE_TYPE = FIELDS.DATETIME.type
|
const DATE_TYPE = FIELDS.DATETIME.type
|
||||||
|
const USER_TYPE = FIELDS.USER.subtype
|
||||||
|
const USERS_TYPE = FIELDS.USERS.subtype
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
const PROHIBITED_COLUMN_NAMES = ["type", "_id", "_rev", "tableId"]
|
const PROHIBITED_COLUMN_NAMES = ["type", "_id", "_rev", "tableId"]
|
||||||
|
@ -287,6 +289,14 @@
|
||||||
if (saveColumn.type !== LINK_TYPE) {
|
if (saveColumn.type !== LINK_TYPE) {
|
||||||
delete saveColumn.fieldName
|
delete saveColumn.fieldName
|
||||||
}
|
}
|
||||||
|
if (isUsersColumn(saveColumn)) {
|
||||||
|
if (saveColumn.subtype === USER_TYPE) {
|
||||||
|
saveColumn.relationshipType = RelationshipType.ONE_TO_MANY
|
||||||
|
} else if (saveColumn.subtype === USERS_TYPE) {
|
||||||
|
saveColumn.relationshipType = RelationshipType.MANY_TO_MANY
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await tables.saveField({
|
await tables.saveField({
|
||||||
originalName,
|
originalName,
|
||||||
|
|
|
@ -102,6 +102,7 @@ export interface BBReferenceFieldMetadata
|
||||||
extends Omit<BaseFieldSchema, "subtype"> {
|
extends Omit<BaseFieldSchema, "subtype"> {
|
||||||
type: FieldType.BB_REFERENCE
|
type: FieldType.BB_REFERENCE
|
||||||
subtype: FieldSubtype.USER | FieldSubtype.USERS
|
subtype: FieldSubtype.USER | FieldSubtype.USERS
|
||||||
|
relationshipType?: RelationshipType
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FieldConstraints {
|
export interface FieldConstraints {
|
||||||
|
|
Loading…
Reference in New Issue