migrateData

Canonical ID: data.migrate.

migrateData(version, sqlSteps)

Applies schema steps atomically with a stored checksum. Versions start at 1 and are sequential. Identical steps for an applied version are not reapplied; changed steps fail. No open transaction is allowed. Maximum 64 steps and 64 KiB SQL per version. Requires SQLite access.

Returns a Map with ok, status, value and error. Check ok before using value; denial or an unavailable host is a structured failure.

Requires Creator Pro or its technical trial for IDE/CLI run and build. Available on desktop, CLI and supported native exports; not in the public playground. Source remains editable in Learner. Generated apps have no Pliro licence check.

Call example

See the advanced application guide for declarations, explicit host permissions and complete examples. This call assumes the required permissions; handle means the value from a successful open operation.

migrateData(1, ["CREATE TABLE notes (text TEXT)"])

Built-ins