Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ACRA 4.2.3 compatible sql #2

Closed
wants to merge 2 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+9 −4
Split
View
@@ -65,7 +65,7 @@ function display_db_query($query_string, $connection, $names) {
}
function display_db_table($tablename, $connection, $names) {
- $fields = array("APP_VERSION_NAME", "USER_CRASH_DATE", "ANDROID_VERSION", "PHONE_MODEL", "PACKAGE_NAME", "STACK_TRACE");
+ $fields = array("APP_VERSION_NAME", "CRASH_REPORT_DATE", "ANDROID_VERSION", "PHONE_MODEL", "PACKAGE_NAME", "STACK_TRACE");
$query_string = 'SELECT ' . implode(',', $fields) . ' FROM ' . $tablename;
View
@@ -42,7 +42,7 @@
<?php
include("core.php");
- $names = array("Version", "Datum", "OS", "Model", "Package", "Stack Trace");
+ $names = array("Version", "Crash report date", "OS", "Model", "Package", "Stack Trace");
display_db_table($table, $global_dbh, $names);
?>
View
9 db.sql
@@ -1,5 +1,5 @@
CREATE TABLE IF NOT EXISTS `android` (
- `REPORT_ID` varchar(50) NOT NULL,
+ `REPORT_ID` int(11) NOT NULL AUTO_INCREMENT,
`APP_VERSION` float DEFAULT NULL,
`APP_VERSION_NAME` varchar(50) DEFAULT NULL,
`ANDROID_VERSION` varchar(10) DEFAULT NULL,
@@ -9,5 +9,10 @@ CREATE TABLE IF NOT EXISTS `android` (
`USER_CRASH_DATE` timestamp NULL DEFAULT NULL,
`PACKAGE_NAME` varchar(255) DEFAULT NULL,
`STACK_TRACE` text,
+ `USER_EMAIL` varchar(255) NOT NULL,
+ `CUSTOM_DATA` text NOT NULL,
+ `BRAND` varchar(255) NOT NULL,
+ `USER_COMMENT` text NOT NULL,
+ `USER_APP_START_DATE` text NOT NULL,
PRIMARY KEY (`REPORT_ID`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;