Sha256: 4e166f80fc53766476adcde41e1d556ed42331f8eb35408e74b85dca826a2714
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 Bytes
Contents
module StrongMigrations module Adapters class MariaDBAdapter < MySQLAdapter def name "MariaDB" end def min_version "10.2" end def server_version @server_version ||= begin target_version(StrongMigrations.target_mariadb_version) do select_all("SELECT VERSION()").first["VERSION()"].split("-").first end end end def set_statement_timeout(timeout) # fix deprecation warning with Active Record 7.1 timeout = timeout.value if timeout.is_a?(ActiveSupport::Duration) select_all("SET max_statement_time = #{connection.quote(timeout)}") end def add_column_default_safe? true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strong_migrations-1.8.0 | lib/strong_migrations/adapters/mariadb_adapter.rb |