thecore_print_commons 3.0.4 → 3.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50d6d7b2f2b791faade51232bbd6ce53b0f6e6dc1e535f449f388671b50b5c5c
4
- data.tar.gz: 9917b2fc7ab55d383d2e11ab9792caf6e5e577eea0cfb77a62c76a6303de6c28
3
+ metadata.gz: b3b7503441e21a848118fe588d5cd9d814d13df3f9d1716c1ff9c5c909f93323
4
+ data.tar.gz: d36bf02ed4a6079ea9ea7c163fb8b8f9aff7dd51cc9e7882fdaf219a02dd2e73
5
5
  SHA512:
6
- metadata.gz: ed4df94fdb20c98468afa43eac81e33c2766579b319bcd47b72100257f36d2a66ba9f4f4745680a9c652148a4bfb4c84590a27c727e377106132f17af89d3eab
7
- data.tar.gz: a6c34863c12ea2d634b8c4df3c0259d17cc46af16ab71afca23d97eaaef1e6db9e653e02de1162f61f7ddfa0dddf6cc603944c9e3c34b8fc48769563d86ea19e
6
+ metadata.gz: 4e0caa41391da6343ea0588c4b5649ea9b37625f3be8a8d033f772414393fc52417272b4434ec1a4c746a6a91305ca032bd0a12d5610fd89a146848ae7d7e64f
7
+ data.tar.gz: af833505c5e7edbf97ce78231202849a80428b2e8c52dc47cf9d8c6c5d0264f2dccd553d8cc30f94b02a17d20d7f37696fe5fd736721e8820d111d25e31751c1
@@ -1,6 +1,6 @@
1
- class CreatePrinters < ActiveRecord::Migration[4.2]
1
+ class CreatePrinters < ActiveRecord::Migration[7.0]
2
2
  def change
3
- create_table :printers do |t|
3
+ create_table :printers, if_not_exists: true do |t|
4
4
  t.string :name
5
5
  t.text :description
6
6
  t.string :ip
@@ -10,8 +10,8 @@ class CreatePrinters < ActiveRecord::Migration[4.2]
10
10
 
11
11
  t.timestamps null: false
12
12
  end
13
- add_index :printers, :name
14
- add_index :printers, :description
15
- add_index :printers, :ip
13
+ add_index :printers, :name, if_not_exists: true
14
+ add_index :printers, :description, if_not_exists: true
15
+ add_index :printers, :ip, if_not_exists: true
16
16
  end
17
17
  end
@@ -1,5 +1,5 @@
1
- class AddTemperatureToPrinter < ActiveRecord::Migration[4.2]
1
+ class AddTemperatureToPrinter < ActiveRecord::Migration[7.0]
2
2
  def change
3
- add_column :printers, :temperature, :integer
3
+ add_column :printers, :temperature, :integer, if_not_exists: true
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
- class CreatePrintTemplates < ActiveRecord::Migration[4.2]
1
+ class CreatePrintTemplates < ActiveRecord::Migration[7.0]
2
2
  def change
3
- create_table :print_templates do |t|
3
+ create_table :print_templates, if_not_exists: true do |t|
4
4
  t.string :name
5
5
  t.text :description
6
6
  t.text :template
@@ -1,4 +1,4 @@
1
- class AddPrintTemplateIdToPrinter < ActiveRecord::Migration[4.2]
1
+ class AddPrintTemplateIdToPrinter < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  add_reference :printers, :print_template, index: true, foreign_key: true
4
4
  end
@@ -1,5 +1,5 @@
1
- class AddDefaultToPrinter < ActiveRecord::Migration[4.2]
1
+ class AddDefaultToPrinter < ActiveRecord::Migration[7.0]
2
2
  def change
3
- add_column :printers, :default, :boolean, default: false
3
+ add_column :printers, :default, :boolean, default: false, if_not_exists: true
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
- class AddPortToPrinter < ActiveRecord::Migration[4.2]
1
+ class AddPortToPrinter < ActiveRecord::Migration[7.0]
2
2
  def change
3
- add_column :printers, :port, :integer, default: 9100
3
+ add_column :printers, :port, :integer, default: 9100, if_not_exists: true
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_print_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni