mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Database migration for tips table changes
This commit is contained in:
parent
cc07e90b44
commit
bd1ed0d732
1 changed files with 19 additions and 0 deletions
19
migrations/096_modify_tips.rb
Normal file
19
migrations/096_modify_tips.rb
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Sequel.migration do
|
||||||
|
up {
|
||||||
|
DB.add_column :tips, :currency, :text
|
||||||
|
DB.add_column :tips, :message, :text
|
||||||
|
DB.add_column :tips, :paypal_payer_email, :text
|
||||||
|
DB.add_column :tips, :paypal_receiver_email, :text
|
||||||
|
DB.add_column :tips, :paypal_txn_id, :text
|
||||||
|
DB.add_column :tips, :fee, :numeric
|
||||||
|
}
|
||||||
|
|
||||||
|
down {
|
||||||
|
DB.drop_column :tips, :currency
|
||||||
|
DB.drop_column :tips, :message
|
||||||
|
DB.drop_column :tips, :paypal_payer_email
|
||||||
|
DB.drop_column :tips, :paypal_receiver_email
|
||||||
|
DB.drop_column :tips, :paypal_txn_id
|
||||||
|
DB.drop_column :tips, :fee
|
||||||
|
}
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue