method

Store.RenameDevelopmentFields

RenameDevelopmentFields moves content across reviewed field renames in a database that ridu dev synchronizes, using the executor migrations use, and synchronizes the database to the resulting schema in the same transaction. The database then records that schema as the one it has, so a rename that was applied is never mistaken for one still waiting. It refuses a database with migration history, which only ridu migrate may change.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
beforeschema.ManifestThe before value.
afterschema.ManifestThe after value.
renames[]migration.RenameThe renames value.

Returns

The declared result.

error

Full signature

func (backend *Store) RenameDevelopmentFields( ctx context.Context, before, after schema.Manifest, renames []ridumigration.Rename, ) error

Source adapters/sqlite/migration_rename.go:148

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.

  • Manifest

    An immutable versioned schema contract.

  • Rename

    Explicit committed content-identity intent.