lib/logstash/outputs/charrington/create_redshift_table.rb in logstash-output-charrington-0.3.9 vs lib/logstash/outputs/charrington/create_redshift_table.rb in logstash-output-charrington-0.3.12

- old
+ new

@@ -39,9 +39,12 @@ def set_column_types columns.each do |column| if column == "id" column_types << "#{column} VARCHAR(512) NOT NULL distkey CONSTRAINT #{table_name}_pkey primary key" next + elsif column == "sent_at" + column_types << "#{column} TIMESTAMP" + next end case event[column] when Time, LogStash::Timestamp column_types << "#{column} TIMESTAMP" when Date