MCPcopy Index your code
hub / github.com/rubenv/sql-migrate / PrintMigration

Function PrintMigration

sql-migrate/command_common.go:64–79  ·  view source on GitHub ↗
(m *migrate.PlannedMigration, dir migrate.MigrationDirection)

Source from the content-addressed store, hash-verified

62}
63
64func PrintMigration(m *migrate.PlannedMigration, dir migrate.MigrationDirection) {
65 switch dir {
66 case migrate.Up:
67 ui.Output(fmt.Sprintf("==> Would apply migration %s (up)", m.Id))
68 for _, q := range m.Up {
69 ui.Output(q)
70 }
71 case migrate.Down:
72 ui.Output(fmt.Sprintf("==> Would apply migration %s (down)", m.Id))
73 for _, q := range m.Down {
74 ui.Output(q)
75 }
76 default:
77 panic("Not reached")
78 }
79}

Callers 2

RunMethod · 0.85
ApplyMigrationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…