000000017.go 557 B

123456789101112131415161718192021
  1. package migrate
  2. import (
  3. "io/ioutil"
  4. "os"
  5. ThemeFiles "golang-fave/assets/template"
  6. "golang-fave/engine/sqlw"
  7. )
  8. func Migrate_000000017(db *sqlw.DB, host string) error {
  9. if err := ioutil.WriteFile(host+string(os.PathSeparator)+"/template/email-new-order-admin.html", ThemeFiles.AllData["email-new-order-admin.html"], 0664); err != nil {
  10. return err
  11. }
  12. if err := ioutil.WriteFile(host+string(os.PathSeparator)+"/template/email-new-order-user.html", ThemeFiles.AllData["email-new-order-user.html"], 0664); err != nil {
  13. return err
  14. }
  15. return nil
  16. }