Skip to content

Commit

Permalink
Update schema_statistic.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov committed Jan 7, 2016
1 parent f58b9cf commit 764f0c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sql/schema_statistic.sql
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ CREATE TABLE IF NOT EXISTS `alarm_data_mem` (
CREATE TABLE IF NOT EXISTS `stats_data` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`from_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`type` varchar(50) NOT NULL DEFAULT '',
`total` int(20) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`,`from_date`),
Expand All @@ -97,7 +97,7 @@ CREATE TABLE IF NOT EXISTS `stats_data` (
CREATE TABLE IF NOT EXISTS `stats_ip` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`from_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`method` varchar(50) NOT NULL DEFAULT '',
`source_ip` varchar(255) NOT NULL DEFAULT '0.0.0.0',
`total` int(20) NOT NULL DEFAULT 0,
Expand Down Expand Up @@ -155,7 +155,7 @@ CREATE TABLE IF NOT EXISTS `stats_geo_mem` (
CREATE TABLE IF NOT EXISTS `stats_geo` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`from_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`method` varchar(50) NOT NULL DEFAULT '',
`country` varchar(255) NOT NULL DEFAULT 'UN',
`lat` float NOT NULL DEFAULT '0',
Expand All @@ -179,7 +179,7 @@ CREATE TABLE IF NOT EXISTS `stats_geo` (
CREATE TABLE IF NOT EXISTS `stats_method` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`from_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`method` varchar(50) NOT NULL DEFAULT '',
`auth` tinyint(1) NOT NULL DEFAULT '0',
`cseq` varchar(100) NOT NULL DEFAULT '',
Expand Down Expand Up @@ -225,7 +225,7 @@ CREATE TABLE IF NOT EXISTS `stats_method_mem` (
CREATE TABLE IF NOT EXISTS `stats_useragent` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`from_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`to_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`useragent` varchar(100) NOT NULL DEFAULT '',
`method` varchar(50) NOT NULL DEFAULT '',
`total` int(10) NOT NULL DEFAULT '0',
Expand Down

0 comments on commit 764f0c2

Please sign in to comment.