sql_cmd 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sql_cmd/database.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2026009b040577e9e545648215f0bed077ff75c6b901aeb0144643a07be6262e
4
- data.tar.gz: 45656864eaae255a6eb8103605f33e2ec5fd87c3375af4e3750bd935bf32abab
3
+ metadata.gz: 863a0cf5e7a7251818d980f5e2719290d89bab6cc9de33349bcbade454b3e1bf
4
+ data.tar.gz: 0c1463b9bfdcffc2fdc17e113025d61d6b3f77de525e381f0b28fffcf06fae43
5
5
  SHA512:
6
- metadata.gz: 05e96b27be968770e656dddcd91e56969c6a4ec71b6deb38e50b352380fe1afed015de25f10e59ba55bb8181a8b39e3bcf65008be731fadb69c22f600e93d115
7
- data.tar.gz: 699ebf6a150ff70284d6c3a81ccf2538d7f0965143d8efa253ed6925082ca9032da4e4b9e2c1679f19e2eed3029a7179cdd380a61eb10b8f4bef5e45d4eff3eb
6
+ metadata.gz: d7236624b3fbac8d3ac37655277535205261d9a75aa9b5147d81d2699c0632b54a4470c0c708b317b36a7cb5fa99e521c4c915df9a5e7f25f4241f26ed580307
7
+ data.tar.gz: 2c6ef2c7c0f05c9fc7398982c75833e0453f9312649ed4294737e732fab187451d16946710c484437fdba740f6081702d13ecd27c1801e23049dbb09717183cb
@@ -219,7 +219,7 @@ module SqlCmd
219
219
  run_restore_as_job(connection_string, sql_server_settings, backup_files, database_name, options: options)
220
220
  monitor_restore(minimum_restore_date, connection_string, database_name, backup_files, options) unless asynchronous
221
221
  end
222
- import_security(connection_string, database_name, import_script_path, backup_url, options) unless import_script_path.nil? || [:no_permissions, :export_only].include?(permissions)
222
+ import_security(connection_string, database_name, import_script_path, backup_url, options) unless database_info['DatabaseNotFound'] || import_script_path.nil? || [:no_permissions, :export_only].include?(permissions)
223
223
  SqlCmd.update_sql_compatibility(connection_string, database_name, options['compatibility_level']) if options['compatibility_level']
224
224
  apply_recovery_model(connection_string, database_name, options) if options['recovery_model']
225
225
  SqlCmd::AlwaysOn.add_to_availability_group(connection_string, database_name, full_backup_method: full_backup_method) if sql_server_settings['AlwaysOnEnabled'] && !options['secondaryreplica'] && !options['skip_always_on']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_cmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Munoz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: easy_json_config