Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ACRA 4.2.3 compatible sql #2

Closed
wants to merge 2 commits into from

2 participants

Gaurav Arora Felix Schulze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Apr 18, 2012
Gaurav Arora gauravarora fix sql in line with ACRA 4.2.3 0aa49c3
Apr 23, 2012
Gaurav Arora gauravarora Show crash report date 38a530c
This page is out of date. Refresh to see the latest.

Showing 3 changed files with 9 additions and 4 deletions. Show diff stats Hide diff stats

  1. +1 1  admin/core.php
  2. +1 1  admin/index.php
  3. +7 2 db.sql
2  admin/core.php
@@ -65,7 +65,7 @@ function display_db_query($query_string, $connection, $names) {
65 65 }
66 66
67 67 function display_db_table($tablename, $connection, $names) {
68   - $fields = array("APP_VERSION_NAME", "USER_CRASH_DATE", "ANDROID_VERSION", "PHONE_MODEL", "PACKAGE_NAME", "STACK_TRACE");
  68 + $fields = array("APP_VERSION_NAME", "CRASH_REPORT_DATE", "ANDROID_VERSION", "PHONE_MODEL", "PACKAGE_NAME", "STACK_TRACE");
69 69
70 70 $query_string = 'SELECT ' . implode(',', $fields) . ' FROM ' . $tablename;
71 71
2  admin/index.php
@@ -42,7 +42,7 @@
42 42 <?php
43 43 include("core.php");
44 44
45   - $names = array("Version", "Datum", "OS", "Model", "Package", "Stack Trace");
  45 + $names = array("Version", "Crash report date", "OS", "Model", "Package", "Stack Trace");
46 46
47 47 display_db_table($table, $global_dbh, $names);
48 48 ?>
9 db.sql
... ... @@ -1,5 +1,5 @@
1 1 CREATE TABLE IF NOT EXISTS `android` (
2   - `REPORT_ID` varchar(50) NOT NULL,
  2 + `REPORT_ID` int(11) NOT NULL AUTO_INCREMENT,
3 3 `APP_VERSION` float DEFAULT NULL,
4 4 `APP_VERSION_NAME` varchar(50) DEFAULT NULL,
5 5 `ANDROID_VERSION` varchar(10) DEFAULT NULL,
@@ -9,5 +9,10 @@ CREATE TABLE IF NOT EXISTS `android` (
9 9 `USER_CRASH_DATE` timestamp NULL DEFAULT NULL,
10 10 `PACKAGE_NAME` varchar(255) DEFAULT NULL,
11 11 `STACK_TRACE` text,
  12 + `USER_EMAIL` varchar(255) NOT NULL,
  13 + `CUSTOM_DATA` text NOT NULL,
  14 + `BRAND` varchar(255) NOT NULL,
  15 + `USER_COMMENT` text NOT NULL,
  16 + `USER_APP_START_DATE` text NOT NULL,
12 17 PRIMARY KEY (`REPORT_ID`)
13   -) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  18 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.