mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Make accesstokens.user_agent NULL by default
The field is currently unused in the app, and it was causing problems in SQLite. Ref T529
This commit is contained in:
parent
9fb7777c33
commit
a3e287a77a
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS `accesstokens` (
|
||||||
`one_time` tinyint(1) NOT NULL DEFAULT '0',
|
`one_time` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`expires` datetime DEFAULT NULL,
|
`expires` datetime DEFAULT NULL,
|
||||||
`user_agent` varchar(255) NOT NULL,
|
`user_agent` varchar(255) DEFAULT NULL,
|
||||||
PRIMARY KEY (`token`)
|
PRIMARY KEY (`token`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS `accesstokens` (
|
||||||
one_time INTEGER NOT NULL DEFAULT '0',
|
one_time INTEGER NOT NULL DEFAULT '0',
|
||||||
created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
expires DATETIME DEFAULT NULL,
|
expires DATETIME DEFAULT NULL,
|
||||||
user_agent TEXT NOT NULL
|
user_agent TEXT DEFAULT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue