abiao 3 år sedan
förälder
incheckning
92b4a2fb89
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. 1 1
      config/config.yml
  2. 2 1
      db/migrate/20220531032358_create_silvers.rb

+ 1 - 1
config/config.yml

@@ -3,7 +3,7 @@ development:
   admin_host: http://tfhadmin.hiwavo.com
   wx_host: http://testlfwx.hiwavo.com
   api_host: https://tfohowapi.hiwavo.com
-  app_host: https://tapp.hiwavo.com
+  app_host: http://tapp.hiwavo.com
   m_host: http://testlfohom.hiwavo.com
 
   ali_access_id: LTAI4G4BptSJxPYrnx4XFnT5

+ 2 - 1
db/migrate/20220531032358_create_silvers.rb

@@ -23,6 +23,7 @@ class CreateSilvers < ActiveRecord::Migration
     add_column :orders,  :paied_silver ,:integer, :limit => 11, :default => 0
     add_column :orders,  :paied_cash ,:integer, :limit => 11, :default => 0
     add_column :order_details,  :silver ,:integer, :limit => 11, :default => 0
+    add_column :order_details,  :dis_amount ,:integer, :limit => 11, :default => 0
     add_column :products, :silver , :integer, :limit => 11, :default => 0
     add_column :products, :use_quan, :boolean,:limit => 1
   end
@@ -35,6 +36,6 @@ class CreateSilvers < ActiveRecord::Migration
     remove_column :products, :silver
     remove_column :products, :use_quan
     remove_column :order_details, :silver
-
+    remove_column :order_details, :dis_amount
   end
 end