Migrate view field to new data model - Part 2 (#2270)
* Migrate view field to new data model * Migrate view fields to new model
This commit is contained in:
@ -7,17 +7,6 @@
|
||||
"description": "(System) View Fields",
|
||||
"icon": "arrows-sort",
|
||||
"fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"name": "objectId",
|
||||
"label": "Object Id",
|
||||
"targetColumnMap": {
|
||||
"value": "objectId"
|
||||
},
|
||||
"description": "View Field target object",
|
||||
"icon": null,
|
||||
"isNullable": false
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"name": "fieldId",
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
[
|
||||
{
|
||||
"objectId": "1a8487a0-480c-434e-b4c7-e22408b97047",
|
||||
"fieldId": "name",
|
||||
"viewId": "10bec73c-0aea-4cc4-a3b2-8c2186f29b43",
|
||||
"position": 0,
|
||||
@ -9,7 +8,6 @@
|
||||
},
|
||||
|
||||
{
|
||||
"objectId": "company",
|
||||
"fieldId": "name",
|
||||
"viewId": "37a8a866-eb17-4e76-9382-03143a2f6a80",
|
||||
"position": 0,
|
||||
@ -17,7 +15,6 @@
|
||||
"size": 180
|
||||
},
|
||||
{
|
||||
"objectId": "company",
|
||||
"fieldId": "domainName",
|
||||
"viewId": "37a8a866-eb17-4e76-9382-03143a2f6a80",
|
||||
"position": 1,
|
||||
@ -25,7 +22,6 @@
|
||||
"size": 100
|
||||
},
|
||||
{
|
||||
"objectId": "company",
|
||||
"fieldId": "accountOwner",
|
||||
"viewId": "37a8a866-eb17-4e76-9382-03143a2f6a80",
|
||||
"position": 2,
|
||||
@ -33,11 +29,95 @@
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"objectId": "company",
|
||||
"fieldId": "createdAt",
|
||||
"viewId": "37a8a866-eb17-4e76-9382-03143a2f6a80",
|
||||
"position": 3,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "employees",
|
||||
"viewId": "37a8a866-eb17-4e76-9382-03143a2f6a80",
|
||||
"position": 4,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "linkedin",
|
||||
"viewId": "37a8a866-eb17-4e76-9382-03143a2f6a80",
|
||||
"position": 5,
|
||||
"isVisible": true,
|
||||
"size": 170
|
||||
},
|
||||
{
|
||||
"fieldId": "address",
|
||||
"viewId": "37a8a866-eb17-4e76-9382-03143a2f6a80",
|
||||
"position": 6,
|
||||
"isVisible": true,
|
||||
"size": 170
|
||||
},
|
||||
|
||||
{
|
||||
"fieldId": "displayName",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 0,
|
||||
"isVisible": true,
|
||||
"size": 210
|
||||
},
|
||||
{
|
||||
"fieldId": "email",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 1,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "company",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 2,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "phone",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 3,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "createdAt",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 4,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "city",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 5,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "jobTitle",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 6,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "linkedin",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 7,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
},
|
||||
{
|
||||
"fieldId": "x",
|
||||
"viewId": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"position": 8,
|
||||
"isVisible": true,
|
||||
"size": 150
|
||||
}
|
||||
]
|
||||
|
||||
@ -3,24 +3,24 @@
|
||||
"id": "37a8a866-eb17-4e76-9382-03143a2f6a80",
|
||||
"name": "All companies",
|
||||
"objectId": "company",
|
||||
"type": "Table"
|
||||
"type": "table"
|
||||
},
|
||||
{
|
||||
"id": "6095799e-b48f-4e00-b071-10818083593a",
|
||||
"name": "All companies",
|
||||
"name": "All people",
|
||||
"objectId": "person",
|
||||
"type": "Table"
|
||||
"type": "table"
|
||||
},
|
||||
{
|
||||
"id": "e26f66b7-f890-4a5c-b4d2-ec09987b5308",
|
||||
"name": "All Opportunities",
|
||||
"name": "All opportunities",
|
||||
"objectId": "company",
|
||||
"type": "Pipeline"
|
||||
"type": "kanban"
|
||||
},
|
||||
{
|
||||
"id": "10bec73c-0aea-4cc4-a3b2-8c2186f29b43",
|
||||
"name": "All Companies (V2)",
|
||||
"objectId": "1a8487a0-480c-434e-b4c7-e22408b97047",
|
||||
"type": "Table"
|
||||
"type": "table"
|
||||
}
|
||||
]
|
||||
|
||||
@ -9,11 +9,6 @@ export const addViewFieldTable: TenantMigrationTableAction[] = [
|
||||
name: 'viewField',
|
||||
action: 'alter',
|
||||
columns: [
|
||||
{
|
||||
name: 'objectId',
|
||||
type: 'varchar',
|
||||
action: 'create',
|
||||
},
|
||||
{
|
||||
name: 'fieldId',
|
||||
type: 'varchar',
|
||||
|
||||
Reference in New Issue
Block a user