mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
add migrations
This commit is contained in:
parent
5346b7345e
commit
526f4c9543
2 changed files with 20 additions and 0 deletions
11
migrations/057_add_paypal_data.rb
Normal file
11
migrations/057_add_paypal_data.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :paypal_profile_id, String
|
||||
DB.add_column :sites, :paypal_token, String
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :paypal_profile_id
|
||||
DB.drop_column :sites, :paypal_token
|
||||
}
|
||||
end
|
9
migrations/058_add_paypal_status.rb
Normal file
9
migrations/058_add_paypal_status.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :paypal_active, :boolean, default: false
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :paypal_active
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue