cardinal

What maps to what

Where each Frappe table, DocType, user, file and app lands in Cardinal.

ERP and HRMS copy ERPNext 16 and HRMS 16, so every v16 DocType has a RecType of the same name with the same fieldnames. A DocType's rows in tabSales Invoice land in rt_sales_invoice in the tenant's schema.

The migrator writes rows straight into those tables. It does not save records through Cardinal's lifecycle, because a save would rename records, stamp today's date and post the ledgers again. GL Entry, Stock Ledger Entry and Payment Ledger Entry arrive as the rows they were.

Table classes

Inventory gives every source table one class.

ClassWhat happensExamples
MappedRows copy into the RecType of the same nametabSales Invoice, tabGL Entry, tabSalary Slip, tabComment, tabVersion, tabError Log
Platform equivalentRows convert into Cardinal's own tables__Auth, tabSeries, tabFile, tabHas Role, tabDocShare, tabSingles
CarriedRows copy into a tenant RecType the migrator creates from the DocType's own metadataCustom DocTypes, DocTypes of other apps
RebuiltNot copied; Cardinal derives it and the checks compare it__global_search, tabBin
Not dataNot copiedtabSessions, __UserSettings, tabPatch Log, tabRQ Job
UnclassifiedCounted and skipped until you classify it on InventoryAny other table

A table is Mapped when the site has its RecType. It is Carried when the DocType is custom or comes from an app other than frappe, erpnext and hrms. A class you pick on the Inventory page wins over all of these.

Values

FrappeCardinal
Check 0 / 1false / true
Datetime in System Settings' time zoneTimestamp with time zone. A repeated hour takes the earlier offset; a value in a skipped hour fails the row
Attach URL /files/x.pdfThe File's name
/files/... in Text Editor, HTML Editor, Markdown Editor/api/file/<name>
A column with no target columnKept in the migrator's carried table and listed on Review

Metadata

FrappeCardinal
Custom DocTypeTenant RecType, under a valid name (e-Waybill Log becomes E Waybill Log)
Custom Field, Property SetterCardinal's Custom Field and Property Setter
Custom DocPermCustom RecPerm
depends_on-style conditionscardinal_expr, or cleared when they read anything but the record's own fields
Server Script, Query and Script ReportCopied disabled, listed on Review
Jinja Print Format, Email TemplateCopied; disabled and listed when Cardinal's template engine refuses it

A field Cardinal cannot compile is changed so the rest compiles, and each change is a review item. For example, a fieldname like _name becomes field_name, and a fetch_from through a field the RecType lacks is cleared.

Users and secrets

Users are rows of tabUser, a Mapped table. The People step adds the rest:

  • Has Role becomes role assignments.
  • User Permissions and DocShares (as RecShares) copy over.
  • Password hashes copy unchanged. Cardinal accepts Frappe's pbkdf2_sha256 hash at login and replaces it with Argon2id.
  • Encrypted Password fields are decrypted with the source's encryption_key and sealed under the target's master key.
  • Naming series counters are set to the source's values, never lower than Cardinal's.
  • Single values go to the site's singles. System Settings' enable_scheduler keeps the target's value.

Sessions are not copied. Everyone signs in again on Cardinal, with their Frappe password.

Files

Each File's bytes go to <tenant id>/<sha256> in the bucket. Equal bytes share one object. The Cardinal File row keeps the source's name, owner, dates, privacy and attached_to_* fields.

A file whose bytes are not in the files folder is marked lost and listed on Failures and Review. Cardinal has no folders, so a folder other than Home or Home/Attachments is kept in carried.

Apps

Frappe appCardinal app
frappecore
erpnexterp
hrmshrms
india_compliancegst_compliance

When a Frappe app finished its setup wizard, the Finish step marks the Cardinal app's setup as done, so the desk does not send people to the wizard.

Rows a Frappe app ships as standard (standard Reports, Print Formats, Workspaces) are not copied. Cardinal's apps install their own.

On this page