Database version 11:
CREATE TABLE android_metadata (locale TEXT);
CREATE TABLE `board` (`key` VARCHAR , `value` VARCHAR , `id` INTEGER PRIMARY KEY AUTOINCREMENT , `order` INTEGER , `saved` SMALLINT , `workSafe` SMALLINT );
CREATE TABLE `loadable` (`board` VARCHAR , `title` VARCHAR , `id` INTEGER PRIMARY KEY AUTOINCREMENT , `listViewIndex` INTEGER , `listViewTop` INTEGER , `mode` INTEGER , `no` INTEGER );
CREATE TABLE `pin` (`loadable_id` INTEGER NOT NULL , `id` INTEGER PRIMARY KEY AUTOINCREMENT , `quoteLastCount` INTEGER , `quoteNewCount` INTEGER , `watchLastCount` INTEGER , `watchNewCount` INTEGER , `watching` SMALLINT );
CREATE TABLE `savedreply` (`board` VARCHAR , `password` VARCHAR , `id` INTEGER PRIMARY KEY AUTOINCREMENT , `no` INTEGER );


Changes in version 12:
ALTER TABLE board ADD COLUMN perPage INTEGER;
ALTER TABLE board ADD COLUMN pages INTEGER;
ALTER TABLE board ADD COLUMN maxFileSize INTEGER;
ALTER TABLE board ADD COLUMN maxWebmSize INTEGER;
ALTER TABLE board ADD COLUMN maxCommentChars INTEGER;
ALTER TABLE board ADD COLUMN bumpLimit INTEGER;
ALTER TABLE board ADD COLUMN imageLimit INTEGER;
ALTER TABLE board ADD COLUMN cooldownThreads INTEGER;
ALTER TABLE board ADD COLUMN cooldownReplies INTEGER;
ALTER TABLE board ADD COLUMN cooldownImages INTEGER;
ALTER TABLE board ADD COLUMN cooldownRepliesIntra INTEGER;
ALTER TABLE board ADD COLUMN cooldownImagesIntra INTEGER;
ALTER TABLE board ADD COLUMN spoilers INTEGER;
ALTER TABLE board ADD COLUMN customSpoilers INTEGER;
ALTER TABLE board ADD COLUMN userIds INTEGER;
ALTER TABLE board ADD COLUMN codeTags INTEGER;
ALTER TABLE board ADD COLUMN preuploadCaptcha INTEGER;
ALTER TABLE board ADD COLUMN countryFlags INTEGER;
ALTER TABLE board ADD COLUMN trollFlags INTEGER;
ALTER TABLE board ADD COLUMN mathTags INTEGER;


Changes in version 13:
ALTER TABLE pin ADD COLUMN isError SMALLINT;
ALTER TABLE board ADD COLUMN thumbnailUrl VARCHAR;


Changes in version 14:
ALTER TABLE pin ADD COLUMN order INTEGER;


Changes is version 15:
ALTER TABLE pin ADD COLUMN archived INTEGER;


Changes in version 16:
CREATE TABLE `threadhide` (`board` VARCHAR , `id` INTEGER PRIMARY KEY AUTOINCREMENT , `no` INTEGER )


Changes is version 17:
ALTER TABLE board ADD COLUMN description TEXT;


Changes in version 18:
CREATE TABLE `history` (`date` BIGINT , `id` INTEGER PRIMARY KEY AUTOINCREMENT , `loadable_id` INTEGER NOT NULL , `thumbnailUrl` VARCHAR )


Changes in version 19:
CREATE TABLE `filter` (`action` INTEGER NOT NULL , `allBoards` SMALLINT NOT NULL , `boards` VARCHAR NOT NULL , `color` INTEGER NOT NULL , `enabled` SMALLINT NOT NULL , `id` INTEGER PRIMARY KEY AUTOINCREMENT , `pattern` VARCHAR NOT NULL , `type` INTEGER NOT NULL )


Changes in version 20:
ALTER TABLE loadable ADD COLUMN lastViewed default -1;


Changes in version 21:
ALTER TABLE loadable ADD COLUMN lastLoaded default -1;


Changes in version 22: (also configures the 4chan site with id 0)
CREATE TABLE `site` (`configuration` VARCHAR , `id` INTEGER PRIMARY KEY AUTOINCREMENT , `userSettings` VARCHAR );
ALTER TABLE loadable ADD COLUMN site INTEGER default 0;
ALTER TABLE board ADD COLUMN site INTEGER default 0;
ALTER TABLE savedreply ADD COLUMN site INTEGER default 0;
ALTER TABLE threadhide ADD COLUMN site INTEGER default 0;


Changes in version 23:
ALTER TABLE board ADD COLUMN "archive" INTEGER;


Changes in version 24:
ALTER TABLE site ADD COLUMN "order" INTEGER;


Changes in version 25:
CREATE INDEX board_site_idx ON board(site);
CREATE INDEX board_saved_idx ON board(saved);
CREATE INDEX board_value_idx ON board(value);
