method
Store.AdoptArtifacts
AdoptArtifacts records pending migrations as applied, without running them, through the newest one whose schema the database already has, such as a database ridu dev synchronized. See ridu migrate baseline.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
directory | string | The directory value. |
Returns
The declared result.
([]string, error)Full signature
func (backend *Store) AdoptArtifacts(
ctx context.Context,
directory string,
) ([]string, error)Related types
StoreA PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.