Removed Test object to simplify database schema; updated docker scripts to run database migrations before starting the server if the database doesn't exist
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
21
db/migrations/0002_add_results_table.rb
Normal file
21
db/migrations/0002_add_results_table.rb
Normal file
@ -0,0 +1,21 @@
|
||||
Sequel.migration do
|
||||
|
||||
up do
|
||||
# create tests table
|
||||
create_table(:results) do
|
||||
primary_key :id
|
||||
foreign_key :hardware_id, :hardware
|
||||
foreign_key :benchmark_id, :benchmarks
|
||||
Float :avg_score, null: false
|
||||
Float :min_score
|
||||
Float :max_score
|
||||
DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
|
||||
DateTime :updated_at, default: Sequel::CURRENT_TIMESTAMP
|
||||
end
|
||||
end
|
||||
|
||||
down do
|
||||
drop_table(:results)
|
||||
end
|
||||
|
||||
end
|
Reference in New Issue
Block a user