mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 19:38:25 +02:00
refactor site_updated, add initial site file tracking
This commit is contained in:
parent
f50b3a23d9
commit
05807e2f39
7 changed files with 44 additions and 10 deletions
17
migrations/050_add_site_files.rb
Normal file
17
migrations/050_add_site_files.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.create_table! :site_files do
|
||||
Integer :site_id, index: true
|
||||
String :path
|
||||
Bigint :size
|
||||
String :sha1_hash
|
||||
Boolean :is_directory, default: false
|
||||
DateTime :created_at
|
||||
DateTime :updated_at
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_table :site_files
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue