-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to use either CSV or MySQL database backend
* Ability to store copy of log in database as well as flatfile.
- Loading branch information
1 parent
aa626ef
commit 3d0b945
Showing
2 changed files
with
81 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- | ||
-- o4send template database schema | ||
-- | ||
|
||
CREATE DATABASE `o4send` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
USE `o4send`; | ||
|
||
|
||
CREATE TABLE IF NOT EXISTS `app_log` ( | ||
`id` int(11) NOT NULL auto_increment, | ||
`timestamp` bigint(20) NOT NULL, | ||
`category` char(20) NOT NULL, | ||
`message` varchar(255) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; | ||
|
||
CREATE TABLE IF NOT EXISTS `phones_seen` ( | ||
`id` int(11) NOT NULL auto_increment, | ||
`timestamp` bigint(20) NOT NULL, | ||
`bt_phone_mac` char(17) NOT NULL, | ||
`transfer_filemd5sum` char(32) NOT NULL, | ||
`transfer_status` char(7) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; | ||
|