mirror of
https://github.com/neocities/neocities.git
synced 2025-04-28 11:12:30 +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 {
|
down {
|
||||||
DB.add_column :sites, :password_reset_token
|
DB.drop_column :sites, :password_reset_token
|
||||||
DB.drop_index :sites, :password_reset_token
|
DB.drop_index :sites, :password_reset_token
|
||||||
}
|
}
|
||||||
end
|
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