plutus 0.14 → 0.15
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8065148547846775eb69a045ab294f98229eba48276fdeff5db760534264d6b
|
4
|
+
data.tar.gz: a1ccfe5713169766bc4ff1582489b91113e404b47ee345f7cb809dfa155718c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abd85e610d29aa6ec688a89b6cc739aa6c3a8aae484908fa5fc85c65b1e162e1d2342316c2c282cfe4b773299251fcc0187776f9c14a04d9b07cd54546970490
|
7
|
+
data.tar.gz: 6df2d57b5a8972f40e2b065b94cb6b7cacd1edfba519d07105917c52dadf20a7b57f03a50d9060e5a37409c5e87e67d409ae7e111916739cfa2900af5c258fbb
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class AddDateToPlutusEntries < ActiveRecord::Migration[4.2]
|
2
|
+
def change
|
3
|
+
add_column :plutus_entries, :date, :date
|
4
|
+
add_index :plutus_entries, :date
|
5
|
+
|
6
|
+
execute <<-SQL
|
7
|
+
UPDATE plutus_entries
|
8
|
+
SET date = created_at
|
9
|
+
WHERE date is null
|
10
|
+
SQL
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class UpdatePlutusTables < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
# we have to remove these indexes because the temporary
|
4
|
+
# table index name is too long
|
5
|
+
remove_index :plutus_amounts, [:account_id, :transaction_id]
|
6
|
+
remove_index :plutus_amounts, [:transaction_id, :account_id]
|
7
|
+
remove_index :plutus_transactions, column: [:commercial_document_id, :commercial_document_type], :name => "index_transactions_on_commercial_doc"
|
8
|
+
|
9
|
+
rename_table :plutus_transactions, :plutus_entries
|
10
|
+
rename_column :plutus_amounts, :transaction_id, :entry_id
|
11
|
+
|
12
|
+
# adding the indexes back
|
13
|
+
add_index :plutus_amounts, [:account_id, :entry_id]
|
14
|
+
add_index :plutus_amounts, [:entry_id, :account_id]
|
15
|
+
add_index :plutus_entries, [:commercial_document_id, :commercial_document_type], :name => "index_entries_on_commercial_doc"
|
16
|
+
end
|
17
|
+
end
|
data/lib/plutus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.15'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bulat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -152,7 +152,9 @@ files:
|
|
152
152
|
- lib/generators/plutus/add_date_upgrade_generator.rb
|
153
153
|
- lib/generators/plutus/base_generator.rb
|
154
154
|
- lib/generators/plutus/plutus_generator.rb
|
155
|
+
- lib/generators/plutus/templates/add_date_migration.rb
|
155
156
|
- lib/generators/plutus/templates/tenant_migration.rb
|
157
|
+
- lib/generators/plutus/templates/update_migration.rb
|
156
158
|
- lib/generators/plutus/tenancy_generator.rb
|
157
159
|
- lib/generators/plutus/upgrade_plutus_generator.rb
|
158
160
|
- lib/plutus.rb
|