From 72829dbca0fe1b70bcd31cdd06edf57e4530c62f Mon Sep 17 00:00:00 2001 From: nixx Date: Sat, 27 Apr 2024 08:36:54 +0300 Subject: [PATCH] published 1.0.7 - fix db tasks --- CHANGELOG.md | 9 +++++++++ lib/clickhouse-activerecord/tasks.rb | 6 +++++- lib/clickhouse-activerecord/version.rb | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02636c16..6cdd42c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +### Version 1.0.7 (Apr 27, 2024) + +* Support table indexes +* Fix non-canonical UUID by [@PauloMiranda98](https://github.com/PauloMiranda98) in (#117) +* Fix precision loss due to JSON float parsing by [@jenskdsgn](https://github.com/jenskdsgn) in (#129) +* Support functions by [@felix-dumit](https://github.com/felix-dumit) in (#120) +* Hotfix/rails71 change column by [@trumenov](https://github.com/trumenov) in (#132) +* Fix DB tasks + ### Version 1.0.5 (Mar 14, 2024) * GitHub workflows diff --git a/lib/clickhouse-activerecord/tasks.rb b/lib/clickhouse-activerecord/tasks.rb index 4c60a0c8..130116a5 100644 --- a/lib/clickhouse-activerecord/tasks.rb +++ b/lib/clickhouse-activerecord/tasks.rb @@ -4,6 +4,10 @@ module ClickhouseActiverecord class Tasks delegate :connection, :establish_connection, to: ActiveRecord::Base + def self.using_database_configurations? + true + end + def initialize(configuration) @configuration = configuration end @@ -50,7 +54,7 @@ def structure_dump(*args) functions.each do |function| file.puts function + ";\n\n" end - + tables.each do |table| file.puts table + ";\n\n" end diff --git a/lib/clickhouse-activerecord/version.rb b/lib/clickhouse-activerecord/version.rb index bab7d84d..0cf70564 100644 --- a/lib/clickhouse-activerecord/version.rb +++ b/lib/clickhouse-activerecord/version.rb @@ -1,3 +1,3 @@ module ClickhouseActiverecord - VERSION = '1.0.6' + VERSION = '1.0.7' end