mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
flag for marking sites changed
This commit is contained in:
parent
93f7918340
commit
3995a64db1
2 changed files with 13 additions and 2 deletions
|
@ -5,7 +5,7 @@ Sequel.migration do
|
|||
}
|
||||
|
||||
down {
|
||||
DB.add_column :sites, :password_reset_token
|
||||
DB.drop_index :sites, :password_reset_token
|
||||
DB.drop_column :sites, :password_reset_token
|
||||
DB.drop_index :sites, :password_reset_token
|
||||
}
|
||||
end
|
11
migrations/015_mark_site_changed.rb
Normal file
11
migrations/015_mark_site_changed.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :site_changed, :boolean, default: false
|
||||
DB.add_index :sites, :site_changed
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :site_changed
|
||||
DB.drop_index :sites, :site_changed
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue