SQLite wants INTEGER and not BIGINT for primary keys

This commit is contained in:
Erik Johnston 2015-04-10 11:16:09 +01:00
parent d5d4281647
commit 0f12772e32
6 changed files with 9 additions and 9 deletions

View file

@ -13,7 +13,7 @@
* limitations under the License.
*/
CREATE TABLE IF NOT EXISTS users(
id BIGINT PRIMARY KEY AUTOINCREMENT,
id INTEGER PRIMARY KEY AUTOINCREMENT,
name VARCHAR(150),
password_hash VARCHAR(150),
creation_ts BIGINT,
@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS users(
);
CREATE TABLE IF NOT EXISTS access_tokens(
id BIGINT PRIMARY KEY AUTOINCREMENT,
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id VARCHAR(150) NOT NULL,
device_id VARCHAR(150),
token VARCHAR(150) NOT NULL,