MCPcopy Index your code
hub / github.com/coder/coder / Up

Function Up

coderd/database/migrations/migrate.go:116–118  ·  view source on GitHub ↗

Up runs SQL migrations to ensure the database schema is up-to-date.

(db *sql.DB)

Source from the content-addressed store, hash-verified

114
115// Up runs SQL migrations to ensure the database schema is up-to-date.
116func Up(db *sql.DB) error {
117 return UpWithFS(db, migrations)
118}
119
120// UpWithFS runs SQL migrations in the given fs.
121func UpWithFS(db *sql.DB, migs fs.FS) (retErr error) {

Calls 1

UpWithFSFunction · 0.85