Migrated from GORM to bbolt for lightweight key-value storage, better aligning with project requirements. Updated repository methods to utilize bbolt's native APIs and removed dependencies associated with GORM.
13 lines
205 B
Go
13 lines
205 B
Go
package migration
|
|
|
|
import (
|
|
"go.etcd.io/bbolt"
|
|
)
|
|
|
|
func Run(db *bbolt.DB) error {
|
|
return db.Update(func(tx *bbolt.Tx) error {
|
|
_, err := tx.CreateBucketIfNotExists([]byte("settings"))
|
|
return err
|
|
})
|
|
}
|