mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 06:06:15 +01:00
Remove commented line of code in database
This commit is contained in:
parent
0402e2fd84
commit
13b2cc066e
1 changed files with 0 additions and 1 deletions
|
@ -100,7 +100,6 @@ func New(db *sql.DB) (AppDatabase, error) {
|
|||
//todo: check for all the tables, not just users
|
||||
err := db.QueryRow(`SELECT name FROM sqlite_master WHERE type='table' AND name='users';`).Scan(&tableName)
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
//fmt.Println("database is empty, creating structure")
|
||||
sqlStmt := `CREATE TABLE "users" (
|
||||
"uid" TEXT NOT NULL,
|
||||
"name" TEXT NOT NULL UNIQUE,
|
||||
|
|
Loading…
Reference in a new issue