autochangewallpaper replace wallpaper

This commit is contained in:
Данил 2022-10-02 12:23:13 +03:00
parent 6db4d752ba
commit 9e3ef92685

View file

@ -22,7 +22,7 @@ func Database() {
sqlTable := ` sqlTable := `
CREATE TABLE IF NOT EXISTS settings ( CREATE TABLE IF NOT EXISTS settings (
startup INTEGER DEFAULT 0, startup INTEGER DEFAULT 0,
autochangewallpaper INTEGER DEFAULT 0 wallpaper INTEGER DEFAULT 0
);` );`
_, err = db.Exec(sqlTable) _, err = db.Exec(sqlTable)
@ -30,7 +30,7 @@ func Database() {
Logger(err.Error()) Logger(err.Error())
} }
stmt, err := db.Prepare("INSERT INTO settings(startup, autochangewallpaper) values(?, ?)") stmt, err := db.Prepare("INSERT INTO settings(startup, wallpaper) values(?,?)")
if err != nil { if err != nil {
Logger(err.Error()) Logger(err.Error())
} }