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
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
before | schema.Manifest | The before value. |
after | schema.Manifest | The after value. |
renames | []migration.Rename | The renames value. |
Returns
The declared result.
errorFull signature
func (backend *Store) RenameDevelopmentFields(
ctx context.Context,
before,
after schema.Manifest,
renames []ridumigration.Rename,
) error