1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-15 17:07:19 +02:00
neocities/migrations/080_fix_total_stat_bandwidth.rb

11 lines
275 B
Ruby

Sequel.migration do
up {
DB.drop_column :daily_site_stats, :bandwidth
DB.add_column :daily_site_stats, :bandwidth, :integer, default: 0
}
down {
DB.drop_column :daily_site_stats, :bandwidth
DB.add_column :daily_site_stats, :bandwidth, :integer
}
end