import BaseTableResult from"../../../common/documents/table-result.mjs";import ServerDocumentMixin from"../backend/server-document.mjs";export default class TableResult extends(ServerDocumentMixin(BaseTableResult)){static _migrationRegistry=[...super._migrationRegistry,{fn:migrateV10Fields,version:12},{fn:migrateType,version:12}]}function migrateV10Fields(e){const t=TableResult._addDataFieldMigration(e,"collection","documentCollection"),i=TableResult._addDataFieldMigration(e,"resultCollection","documentCollection"),n=TableResult._addDataFieldMigration(e,"resultId","documentId");return t||i||n}function migrateType(e){const t=CONST.TABLE_RESULT_TYPES;return"number"==typeof e.type&&(e.type=0===e.type?t.TEXT:t.DOCUMENT,!0)}