Updated duration column type from decimal to numeric(4,2)
This commit is contained in:
@@ -19,7 +19,7 @@ return new class extends Migration
|
||||
name TEXT NOT NULL,
|
||||
|
||||
start_time TIME NOT NULL,
|
||||
duration DECIMAL NOT NULL,
|
||||
duration NUMERIC(4, 2) NOT NULL,
|
||||
end_time TIME NOT NULL, --GENERATED ALWAYS AS (start_time + (duration * INTERVAL '1 hour')) STORED,
|
||||
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
|
||||
Reference in New Issue
Block a user