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