mirror of
https://github.com/writeas/writefreely
synced 2025-02-08 16:38:45 +01: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
@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS `accesstokens` (
|
||||
`one_time` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`expires` datetime DEFAULT NULL,
|
||||
`user_agent` varchar(255) NOT NULL,
|
||||
`user_agent` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`token`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
|
@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS `accesstokens` (
|
||||
one_time INTEGER NOT NULL DEFAULT '0',
|
||||
created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
expires DATETIME DEFAULT NULL,
|
||||
user_agent TEXT NOT NULL
|
||||
user_agent TEXT DEFAULT NULL
|
||||
);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user