Remove virtual fieldType Relation from fieldMetadata sync
This commit is contained in:
@ -85,6 +85,10 @@ export class WorkspaceMigrationFieldFactory {
|
|||||||
const workspaceMigrations: Partial<WorkspaceMigrationEntity>[] = [];
|
const workspaceMigrations: Partial<WorkspaceMigrationEntity>[] = [];
|
||||||
|
|
||||||
for (const fieldMetadata of fieldMetadataCollection) {
|
for (const fieldMetadata of fieldMetadataCollection) {
|
||||||
|
if (fieldMetadata.type === FieldMetadataType.RELATION) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const migrations: WorkspaceMigrationTableAction[] = [
|
const migrations: WorkspaceMigrationTableAction[] = [
|
||||||
{
|
{
|
||||||
name: computeObjectTargetTable(
|
name: computeObjectTargetTable(
|
||||||
@ -116,6 +120,10 @@ export class WorkspaceMigrationFieldFactory {
|
|||||||
const workspaceMigrations: Partial<WorkspaceMigrationEntity>[] = [];
|
const workspaceMigrations: Partial<WorkspaceMigrationEntity>[] = [];
|
||||||
|
|
||||||
for (const fieldMetadataUpdate of fieldMetadataUpdateCollection) {
|
for (const fieldMetadataUpdate of fieldMetadataUpdateCollection) {
|
||||||
|
if (fieldMetadataUpdate.altered.type === FieldMetadataType.RELATION) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const migrations: WorkspaceMigrationTableAction[] = [
|
const migrations: WorkspaceMigrationTableAction[] = [
|
||||||
{
|
{
|
||||||
name: computeObjectTargetTable(
|
name: computeObjectTargetTable(
|
||||||
|
|||||||
Reference in New Issue
Block a user