Rules: migration (migration.script)
Migration rules (migration.script)
-
Renaming a property or action, or moving it to another namespace, changes its canonical name. Whenever the assistant renames or re-namespaces an existing element, it MUST record the change in
migration.scriptin the same edit; otherwise the platform treats the old and new names as unrelated elements — the old one is dropped and the new one starts empty. -
For a primary (
DATA) property this is silently destructive and the assistant MUST take special care. The rename / namespace change MUST be recorded as aSTORED PROPERTYchange (old canonical name -> new canonical name), which renames the underlying database column and preserves its data. A plainPROPERTYchange carries over only the security-policy and reflection settings, NOT the stored data. -
Without the
STORED PROPERTYentry, on the next server start the old column is renamed to_DELETED_plus its old database name — or dropped outright if a column by that name is already there — and a fresh empty column is created for the new name, so all existing values of the property are lost. The assistant MUST NOT rename or move aDATAproperty to another namespace without adding this entry. -
Renaming a custom class, or moving it to another namespace, MUST be recorded as a
CLASSchange to preserve its objects and their data. Such a class rename can also change the canonical names of itsDATAproperties; these are not tracked automatically and MUST be added as their ownSTORED PROPERTYchanges.