mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
migration files
This commit is contained in:
parent
d535bee286
commit
0b2cdebf3b
2 changed files with 18 additions and 0 deletions
9
migrations/006_remove_change_marker.rb
Normal file
9
migrations/006_remove_change_marker.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.drop_column :sites, :initial_index_changed
|
||||
}
|
||||
|
||||
down {
|
||||
DB.add_column :sites, :initial_index_changed, :boolean, default: false
|
||||
}
|
||||
end
|
9
migrations/007_add_hits_counter.rb
Normal file
9
migrations/007_add_hits_counter.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :hits, :integer, default: 0
|
||||
}
|
||||
|
||||
down {
|
||||
DB.add_column :sites, :hits
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue