MCPcopy Create free account
hub / github.com/buggregator/server / AddSQL

Method AddSQL

internal/storage/migrator.go:58–64  ·  view source on GitHub ↗

AddSQL registers a raw SQL migration with a given name and module.

(moduleName, name, content string)

Source from the content-addressed store, hash-verified

56
57// AddSQL registers a raw SQL migration with a given name and module.
58func (m *Migrator) AddSQL(moduleName, name, content string) {
59 m.migrations = append(m.migrations, Migration{
60 Name: name,
61 Module: moduleName,
62 Content: content,
63 })
64}
65
66// Run executes all collected migrations sorted by filename.
67// Uses a migrations tracking table to avoid re-running.

Calls

no outgoing calls