000000017.go 596 B

12345678910111213141516171819202122
  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_000000017(ctx context.Context, db *sqlw.DB, host string) error {
  10. if err := ioutil.WriteFile(host+string(os.PathSeparator)+"/template/email-new-order-admin.html", ThemeFiles.AllData["email-new-order-admin.html"], 0664); err != nil {
  11. return err
  12. }
  13. if err := ioutil.WriteFile(host+string(os.PathSeparator)+"/template/email-new-order-user.html", ThemeFiles.AllData["email-new-order-user.html"], 0664); err != nil {
  14. return err
  15. }
  16. return nil
  17. }