upgrades.go 421 B

12345678910111213141516171819202122
  1. // Copyright (c) 2025 Tulir Asokan
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this
  5. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. package upgrades
  7. import (
  8. "embed"
  9. "go.mau.fi/util/dbutil"
  10. )
  11. var Table dbutil.UpgradeTable
  12. //go:embed *.sql
  13. var upgrades embed.FS
  14. func init() {
  15. Table.RegisterFS(upgrades)
  16. }