adding read only field

This commit is contained in:
stremovsky
2020-01-05 13:38:13 +02:00
parent e014765e73
commit a4c3cadf2b

View File

@@ -789,6 +789,7 @@ func (dbobj dbcon) indexNewApp(appName string) {
_, err = tx.Exec("CREATE TABLE IF NOT EXISTS " + appName + ` ( _, err = tx.Exec("CREATE TABLE IF NOT EXISTS " + appName + ` (
token STRING, token STRING,
md5 STRING, md5 STRING,
rofields STRING,
data STRING, data STRING,
status STRING, status STRING,
` + "`when` int);") ` + "`when` int);")
@@ -821,9 +822,10 @@ func initUsers(db *sql.DB) error {
loginidx STRING, loginidx STRING,
emailidx STRING, emailidx STRING,
phoneidx STRING, phoneidx STRING,
rofields STRING,
tempcodeexp int, tempcodeexp int,
tempcode int, tempcode int,
data string data STRING
); );
`) `)
if err != nil { if err != nil {