MCPcopy
hub / github.com/pocketbase/pocketbase / Copy

Method Copy

core/migrations_list.go:32–36  ·  view source on GitHub ↗

Copy copies all provided list migrations into the current one.

(list MigrationsList)

Source from the content-addressed store, hash-verified

30
31// Copy copies all provided list migrations into the current one.
32func (l *MigrationsList) Copy(list MigrationsList) {
33 for _, item := range list.Items() {
34 l.Register(item.Up, item.Down, item.File)
35 }
36}
37
38// Add adds adds an existing migration definition to the list.
39//

Callers 2

TestMigrationsListFunction · 0.95
RunAllMigrationsMethod · 0.95

Calls 2

RegisterMethod · 0.95
ItemsMethod · 0.80

Tested by 1

TestMigrationsListFunction · 0.76