000000022.go 393 B

123456789101112131415161718
  1. package migrate
  2. import (
  3. "context"
  4. "io/ioutil"
  5. "os"
  6. ThemeFiles "golang-fave/engine/assets/template"
  7. "golang-fave/engine/sqlw"
  8. )
  9. func Migrate_000000022(ctx context.Context, db *sqlw.DB, host string) error {
  10. if err := ioutil.WriteFile(host+string(os.PathSeparator)+"/template/maintenance.html", ThemeFiles.AllData["maintenance.html"], 0664); err != nil {
  11. return err
  12. }
  13. return nil
  14. }