jzimmek-reportme 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/reportme/report_factory.rb +3 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
@@ -70,9 +70,11 @@ module Reportme
|
|
70
70
|
def ensure_report_tables_exist(report, period_name)
|
71
71
|
|
72
72
|
table_name = report.table_name(period_name)
|
73
|
-
sql = report.sql('0000-00-00 00:00:00', '0000-00-00 00:00:00', period_name)
|
74
73
|
|
75
74
|
unless table_exist?(table_name)
|
75
|
+
|
76
|
+
sql = report.sql('0000-00-00 00:00:00', '0000-00-00 00:00:00', :day)
|
77
|
+
|
76
78
|
exec("create table #{table_name} ENGINE=InnoDB default CHARSET=utf8 as #{sql} limit 0;")
|
77
79
|
exec("alter table #{table_name} modify von datetime;")
|
78
80
|
exec("alter table #{table_name} add index(von);")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jzimmek-reportme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Zimmek
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-06 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|