arxutils_sqlite3 0.1.54 → 0.1.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/arxutils_sqlite3/version.rb +1 -1
- data/lib/template/acrecord/acrecord_current.tmpl +1 -1
- data/lib/template/acrecord/acrecord_invalid.tmpl +2 -2
- data/lib/template/acrecord/base.tmpl +1 -1
- data/lib/template/acrecord/current.tmpl +1 -1
- data/lib/template/acrecord/db_scheme/dbsetup.tmpl +2 -2
- data/lib/template/acrecord/noitem.tmpl +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5088d67aaf0d344baa38409d59917374132f161d7e3f9f24d4e947dfe83ae4ce
|
4
|
+
data.tar.gz: 405fdb8388ab606d8c2036f26966707bf05dddc498cc50ebb4730d0fcf03f73a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48294fc512c0ea001f5f4e2f2adba8c4e8aea126c921fcdc0e769c70fce1530cf084778b65133cd0402b8c2ca728e8bf971f364f6d7f51451785e41d8808b7e8
|
7
|
+
data.tar.gz: 8a0a987962aad35da0c289b4f716abf70f626b35ad5b5c739981240cebbab08d68f98c9ac61c4c22bd1a1b89da195abae806642a48cfd6e39e56df007c9a7bd2
|
data/Gemfile.lock
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
class Invalid<%= @data[:classname_downcase] %> < ActiveRecord::Base
|
2
|
-
belongs_to :<%= @data[:classname_downcase] %>, foreign_key:
|
3
|
-
belongs_to :<%= @data[:count_classname_downcase] %>, foreign_key:
|
2
|
+
belongs_to :<%= @data[:classname_downcase] %>, foreign_key: "org_id"
|
3
|
+
belongs_to :<%= @data[:count_classname_downcase] %>, foreign_key: "<%= @data[:count_field] %>"
|
4
4
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class Create<%= @data[:classname] %> < ActiveRecord::Migration[<%= @data[:ar_version] %>]
|
2
2
|
def self.up
|
3
3
|
create_table :<%= @data[:plural] %> do |t|
|
4
|
-
<% @data[:ary].each do |x| %>
|
4
|
+
<% @data[:ary].each do |x| %>
|
5
5
|
t.column :<%= x.name %>, :<%= x.type %>, :null => <%= x.null %>
|
6
6
|
<% end %>
|
7
7
|
t.timestamps null: false
|
@@ -2,7 +2,7 @@ class CreateCurrent<%= @data[:classname_downcase] %> < ActiveRecord::Migration[<
|
|
2
2
|
def self.up
|
3
3
|
execute <<-SQL
|
4
4
|
CREATE VIEW current<%= @data[:plural] %> AS SELECT id as org_id,
|
5
|
-
<%= @data[:ary].map{|x| x.name }.join(" , ") %>
|
5
|
+
<%= @data[:ary].map{|x| x.name }.join(" , ") %>
|
6
6
|
FROM <%= @data[:plural] %> where not exists (select * from invalid<%= @data[:plural] %> where invalid<%= @data[:plural] %>.org_id = <%= @data[:plural] %>.id )
|
7
7
|
SQL
|
8
8
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require_relative
|
1
|
+
require_relative "../lib/dbacrecord"
|
2
2
|
|
3
3
|
class Dbsetup
|
4
4
|
def initialize(connect_time)
|
5
5
|
@connect_time = connect_time
|
6
|
-
@ct = <%= klass %>::Dbutil::Countdatetime.create(
|
6
|
+
@ct = <%= klass %>::Dbutil::Countdatetime.create(countdatetime: @connect_time)
|
7
7
|
@hs_by_notebook = {}
|
8
8
|
@hs_by_id = {}
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class Create<%= @data[:classname] %> < ActiveRecord::Migration[<%= @data[:ar_version] %>]
|
2
2
|
def self.up
|
3
3
|
create_table :<%= @data[:plural] %> do |t|
|
4
|
-
<% @data[:ary].each do |x| %>
|
4
|
+
<% @data[:ary].each do |x| %>
|
5
5
|
t.column :<%= x.name %>, :<%= x.type %>, :null => <%= x.null %>
|
6
|
-
<% end %>
|
6
|
+
<% end %>
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|