|
@@ -22,6 +22,7 @@ class CreateSilvers < ActiveRecord::Migration
|
|
|
add_column :orders, :total_silver ,:integer, :limit => 11, :default => 0
|
|
add_column :orders, :total_silver ,:integer, :limit => 11, :default => 0
|
|
|
add_column :orders, :paied_silver ,:integer, :limit => 11, :default => 0
|
|
add_column :orders, :paied_silver ,:integer, :limit => 11, :default => 0
|
|
|
add_column :orders, :paied_cash ,: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 :products, :silver , :integer, :limit => 11, :default => 0
|
|
add_column :products, :silver , :integer, :limit => 11, :default => 0
|
|
|
add_column :products, :use_quan, :boolean,:limit => 1
|
|
add_column :products, :use_quan, :boolean,:limit => 1
|
|
|
end
|
|
end
|
|
@@ -33,6 +34,7 @@ class CreateSilvers < ActiveRecord::Migration
|
|
|
remove_column :orders, :dis_amount
|
|
remove_column :orders, :dis_amount
|
|
|
remove_column :products, :silver
|
|
remove_column :products, :silver
|
|
|
remove_column :products, :use_quan
|
|
remove_column :products, :use_quan
|
|
|
|
|
+ remove_column :order_details, :silver
|
|
|
|
|
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|