Skip to content

LB3 model import: preserve connector-specific metadata in property definitions #3810

@bajtos

Description

@bajtos

Consider the following LB3 model definition:

{
  "name": "Product",
  "base": "PersistedModel",
  "properties": {
    "name": {
      "type": "string",
      "required": true,
      "mysql": {
        "column": "NAME",
        "length": 80,
      }
    }
  }
}

Expected property definition in LB4 model file:

@property{
  type: 'string',
    mysql: {
      column: 'NAME',
      length: 80,
    },
})
name: string;

Acceptance criteria

  • add migration unit tests for preserving db metadata in model properties
  • check a migrated lb-next app manually that was migrated from an lb3 app with the above criteria
  • open additional issues for any open challenges migrating apps with above criteria
  • Update Importing-LB3-models.md, remove the relevant point from the list of known limitations
  • remove blocks on dependent issues (LB3 model import: handle ObjectID type for MongoDB #3814)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions