thecore_print_commons 3.0.4 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50d6d7b2f2b791faade51232bbd6ce53b0f6e6dc1e535f449f388671b50b5c5c
4
- data.tar.gz: 9917b2fc7ab55d383d2e11ab9792caf6e5e577eea0cfb77a62c76a6303de6c28
3
+ metadata.gz: d7a79f04fdf3ccb0f1a35ee75ed2b69de02ff6ce644541edd0193e97af91eb78
4
+ data.tar.gz: b83c04802d7a785ce63b48410a769ceab4675f6119f4408cc9b41943dfe30544
5
5
  SHA512:
6
- metadata.gz: ed4df94fdb20c98468afa43eac81e33c2766579b319bcd47b72100257f36d2a66ba9f4f4745680a9c652148a4bfb4c84590a27c727e377106132f17af89d3eab
7
- data.tar.gz: a6c34863c12ea2d634b8c4df3c0259d17cc46af16ab71afca23d97eaaef1e6db9e653e02de1162f61f7ddfa0dddf6cc603944c9e3c34b8fc48769563d86ea19e
6
+ metadata.gz: f6731976055a2d83549b03fb1f4c5eb345c4e447157d91f15e6459088f43119cb07fee0b59593d04e6e5d142a7ed18752103f0b41ed84c5efe47b2b3bd864ca9
7
+ data.tar.gz: 146598426ca490471eb51050e7bb483b63c2b975eb90aa3550d7f1ec7dd1ab1bdb695ecf52ff82d2e58a271c1f9f74595c86e4a9db28b3cfa25a05b7b00fca1d
@@ -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,5 +1,6 @@
1
- class AddPrintTemplateIdToPrinter < ActiveRecord::Migration[4.2]
1
+ class AddPrintTemplateIdToPrinter < ActiveRecord::Migration[7.0]
2
2
  def change
3
- add_reference :printers, :print_template, index: true, foreign_key: true
3
+ add_column :printers, :print_template_id, :bigint, if_not_exist: true
4
+ add_index :printers, :print_template_id, if_not_exist: true
4
5
  end
5
6
  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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni