Skip to content

Commit

Permalink
fixed more differences
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Mar 16, 2024
1 parent eeb02b0 commit 73a40d3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/backend/migration/20240317000000.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func tablesWithWrongCOLLATE() []string {
return []string{"crontab", "devices", "dish", "files", "kino", "news", "newsSource", "notification_types"}
return []string{"crontab", "devices", "dish", "files", "kino", "news", "newsSource"}
}

// migrate20240317000000
Expand Down
5 changes: 5 additions & 0 deletions server/model/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ type Notification struct {
Signature null.String `gorm:"column:signature;type:text;size:65535;" json:"signature"`
Silent int32 `gorm:"column:silent;type:tinyint;default:0;" json:"silent"`
}

// TableName sets the insert table name for this struct type
func (n *Notification) TableName() string {
return "notification"
}
5 changes: 5 additions & 0 deletions server/model/notification_confirmation.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ type NotificationConfirmation struct {
Created time.Time `gorm:"column:created;type:timestamp;default:CURRENT_TIMESTAMP;" json:"created"`
Received null.Time `gorm:"column:received;type:timestamp;" json:"received"`
}

// TableName sets the insert table name for this struct type
func (n *NotificationConfirmation) TableName() string {
return "notification_confirmation"
}
5 changes: 5 additions & 0 deletions server/model/notification_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ type NotificationType struct {
Name string `gorm:"column:name;type:text;size:65535;" json:"name"`
Confirmation string `gorm:"column:confirmation;type:enum('true', 'false');default:'false';" json:"confirmation"`
}

// TableName sets the insert table name for this struct type
func (n *NotificationType) TableName() string {
return "notification_type"
}

0 comments on commit 73a40d3

Please sign in to comment.