Skip to content

Commit c405be5

Browse files
committed
refactor!: move database to data directory
1 parent 396856c commit c405be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/models/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var DB *gorm.DB
1010

1111
// ConnectDatabase connects to the database DB
1212
func ConnectDatabase() error {
13-
db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})
13+
db, err := gorm.Open(sqlite.Open("data/gorm.db"), &gorm.Config{})
1414
if err != nil {
1515
panic("Failed to connect to database!")
1616
}

0 commit comments

Comments
 (0)