mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 03:20:40 +02:00
add space used migration
This commit is contained in:
parent
518ef4579d
commit
c36ca15055
4 changed files with 27 additions and 1 deletions
9
migrations/049_add_space_used_to_sites.rb
Normal file
9
migrations/049_add_space_used_to_sites.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :space_used, :bigint, default: 0, index: true
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :space_used
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue