mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
must_equal constraints must include all public key columns (TODO: extract from DB schema)
This commit is contained in:
@@ -615,7 +615,7 @@ def namedb_name_update( cur, opcode, input_opdata, only_if={}, constraints_ignor
|
||||
|
||||
# reduce opdata down to the given fields....
|
||||
must_equal = namedb_update_must_equal( opdata, mutate_fields )
|
||||
must_equal += ['name']
|
||||
must_equal += ['name','block_number']
|
||||
|
||||
for ignored in constraints_ignored:
|
||||
if ignored in must_equal:
|
||||
@@ -704,7 +704,7 @@ def namedb_namespace_update( cur, opcode, input_opdata, only_if={}, constraints_
|
||||
|
||||
# reduce opdata down to the given fields....
|
||||
must_equal = namedb_update_must_equal( opdata, mutate_fields )
|
||||
must_equal += ['namespace_id']
|
||||
must_equal += ['namespace_id','block_number']
|
||||
|
||||
for ignored in constraints_ignored:
|
||||
if ignored in must_equal:
|
||||
|
||||
Reference in New Issue
Block a user