diff options
author | FChannel <=> | 2021-01-28 00:27:36 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 00:27:36 -0800 |
commit | faee9db270a22a42e45210529c7998dcede0087b (patch) | |
tree | 4b3c90b197f8a784e8ce3c57e6e57d4b423e83e8 /Database.go | |
parent | c171ea82b48f9b2f5c9b8132755e4fb8545290d9 (diff) |
added red board layout
Diffstat (limited to 'Database.go')
-rw-r--r-- | Database.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Database.go b/Database.go index f433cbe..aac87c7 100644 --- a/Database.go +++ b/Database.go @@ -50,9 +50,9 @@ func GetActorByNameFromDB(db *sql.DB, name string) Actor { func CreateNewBoardDB(db *sql.DB, actor Actor) Actor{ - query := `insert into actor (type, id, name, preferedusername, inbox, outbox, following, followers, summary) values ($1, $2, $3, $4, $5, $6, $7, $8, $9)` + query := `insert into actor (type, id, name, preferedusername, inbox, outbox, following, followers, summary, restricted) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)` - _, err := db.Exec(query, actor.Type, actor.Id, actor.Name, actor.PreferredUsername, actor.Inbox, actor.Outbox, actor.Following, actor.Followers, actor.Summary) + _, err := db.Exec(query, actor.Type, actor.Id, actor.Name, actor.PreferredUsername, actor.Inbox, actor.Outbox, actor.Following, actor.Followers, actor.Summary, actor.Restricted) if err != nil { fmt.Println("board exists") |