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.
| Class | What happens | Examples |
|---|---|---|
| Mapped | Rows copy into the RecType of the same name | tabSales Invoice, tabGL Entry, tabSalary Slip, tabComment, tabVersion, tabError Log |
| Platform equivalent | Rows convert into Cardinal's own tables | __Auth, tabSeries, tabFile, tabHas Role, tabDocShare, tabSingles |
| Carried | Rows copy into a tenant RecType the migrator creates from the DocType's own metadata | Custom DocTypes, DocTypes of other apps |
| Rebuilt | Not copied; Cardinal derives it and the checks compare it | __global_search, tabBin |
| Not data | Not copied | tabSessions, __UserSettings, tabPatch Log, tabRQ Job |
| Unclassified | Counted and skipped until you classify it on Inventory | Any 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
| Frappe | Cardinal |
|---|---|
Check 0 / 1 | false / true |
| Datetime in System Settings' time zone | Timestamp with time zone. A repeated hour takes the earlier offset; a value in a skipped hour fails the row |
Attach URL /files/x.pdf | The File's name |
/files/... in Text Editor, HTML Editor, Markdown Editor | /api/file/<name> |
| A column with no target column | Kept in the migrator's carried table and listed on Review |
Metadata
| Frappe | Cardinal |
|---|---|
| Custom DocType | Tenant RecType, under a valid name (e-Waybill Log becomes E Waybill Log) |
| Custom Field, Property Setter | Cardinal's Custom Field and Property Setter |
| Custom DocPerm | Custom RecPerm |
depends_on-style conditions | cardinal_expr, or cleared when they read anything but the record's own fields |
| Server Script, Query and Script Report | Copied disabled, listed on Review |
| Jinja Print Format, Email Template | Copied; 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_sha256hash at login and replaces it with Argon2id. - Encrypted Password fields are decrypted with the source's
encryption_keyand 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_schedulerkeeps 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 app | Cardinal app |
|---|---|
| frappe | core |
| erpnext | erp |
| hrms | hrms |
| india_compliance | gst_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.