mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2025-02-22 18:33:10 +03:00
delete autoupdate and lang
This commit is contained in:
parent
9082744466
commit
7c75974bfe
2 changed files with 30 additions and 47 deletions
|
@ -20,9 +20,7 @@ func Database() {
|
|||
if exists == false {
|
||||
sqlTable := `
|
||||
CREATE TABLE IF NOT EXISTS settings (
|
||||
lang TEXT DEFAULT 'en',
|
||||
autostart INTEGER DEFAULT 0,
|
||||
autoupdate INTEGER DEFAULT 0,
|
||||
autochangewallpaper INTEGER DEFAULT 0
|
||||
);`
|
||||
_, CreateTableErr := db.Exec(sqlTable)
|
||||
|
@ -30,12 +28,12 @@ func Database() {
|
|||
panic(CreateTableErr)
|
||||
}
|
||||
|
||||
stmt, InsertErr := db.Prepare("INSERT INTO settings(lang, autostart, autoupdate) values(?,?,?)")
|
||||
stmt, InsertErr := db.Prepare("INSERT INTO settings(autostart, autochangewallpaper) values(?,?)")
|
||||
if InsertErr != nil {
|
||||
panic(InsertErr)
|
||||
}
|
||||
|
||||
_, ExecErr := stmt.Exec("en", 0, 0)
|
||||
_, ExecErr := stmt.Exec(0, 0)
|
||||
if ExecErr != nil {
|
||||
panic(ExecErr)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue