Skip to content

Commit

Permalink
chore: use null instead of default
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jul 17, 2024
1 parent 3f15f1e commit af90775
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
var _202407171220_add_response_received_at_to_request_events = &gormigrate.Migration{
ID: "202407171220_add_response_received_at_to_request_events",
Migrate: func(tx *gorm.DB) error {
if err := tx.Exec("ALTER TABLE request_events ADD COLUMN response_received_at TIMESTAMP DEFAULT '0001-01-01 00:00:00+00'").Error; err != nil {
if err := tx.Exec("ALTER TABLE request_events ADD COLUMN response_received_at TIMESTAMP NULL").Error; err != nil {
return err
}

Expand Down

0 comments on commit af90775

Please sign in to comment.