diff options
author | Aaron Parecki <aaron@parecki.com> | 2015-07-25 03:42:47 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2015-07-25 03:42:47 -0700 |
commit | 41fac1f6f109912defa07d7acb6b95e015ad4339 (patch) | |
tree | daeb304c6a427836166c4ccb65cb247add0b3de0 /schema/mysql.sql | |
parent | 0c27b5bdd561aa27e1138f4fdc2be04bd828ff69 (diff) | |
parent | 8de9fd30276a273e715c0f3ee4cf227d2927bb36 (diff) |
Merge pull request #20 from jeena/sqlite
Adds possibility to use SQLite as db
Diffstat (limited to 'schema/mysql.sql')
-rw-r--r-- | schema/mysql.sql | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/schema/mysql.sql b/schema/mysql.sql new file mode 100644 index 0000000..5f33ce6 --- /dev/null +++ b/schema/mysql.sql @@ -0,0 +1,23 @@ +CREATE TABLE `users` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `url` varchar(255) DEFAULT NULL, + `authorization_endpoint` varchar(255) DEFAULT NULL, + `token_endpoint` varchar(255) DEFAULT NULL, + `micropub_endpoint` varchar(255) DEFAULT NULL, + `micropub_access_token` text, + `micropub_scope` varchar(255) DEFAULT NULL, + `micropub_response` text, + `micropub_success` tinyint(4) DEFAULT '0', + `date_created` datetime DEFAULT NULL, + `last_login` datetime DEFAULT NULL, + `last_micropub_response` text, + `last_micropub_response_date` datetime DEFAULT NULL, + `location_enabled` tinyint(4) NOT NULL DEFAULT '0', + `syndication_targets` text, + `facebook_access_token` text, + `twitter_access_token` text, + `twitter_token_secret` text, + `twitter_username` varchar(255) DEFAULT NULL, + `instagram_access_token` text, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; |