API Reference / @evolu/common / Evolu/Internal / maybeMigrateToVersion0
Function: maybeMigrateToVersion0()
function maybeMigrateToVersion0(deps): (schema) => Result<
| null
| {
lastTimestamp: Readonly;
messages: readonly CrdtMessage[];
mnemonic: string & Brand<"Trimmed"> & Brand<"MinLength1"> & Brand<"Mnemonic">;
}, SqliteError>;
Defined in: packages/common/src/Evolu/Db.ts:1016
Parameters
Parameter | Type |
---|---|
deps | SqliteDep |
Returns
(schema): Result<
| null
| {
lastTimestamp: Readonly;
messages: readonly CrdtMessage[];
mnemonic: string & Brand<"Trimmed"> & Brand<"MinLength1"> & Brand<"Mnemonic">;
}, SqliteError>;
Parameters
Parameter | Type |
---|---|
schema | DbSchema |
Returns
Result
<
| null
| {
lastTimestamp
: Readonly
;
messages
: readonly CrdtMessage
[];
mnemonic
: string
& Brand
<"Trimmed"
> & Brand
<"MinLength1"
> & Brand
<"Mnemonic"
>;
}, SqliteError
>