box: forbid foreign keys for incompatible temp/local spaces
There must be a couple of rules: * foreign key from non-temporary space to temporary space must be forbidden since after restart all existing links will be broken. * foreign key from non-local space to local space must be forbidden on any replica all existing can be broken. This patch implements the rules. Closes #8936 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-8936-foreign-keys-with-temporary-and-local.md 5 additions, 0 deletions...released/gh-8936-foreign-keys-with-temporary-and-local.md
- src/box/alter.cc 50 additions, 0 deletionssrc/box/alter.cc
- src/box/tuple_constraint_fkey.c 30 additions, 0 deletionssrc/box/tuple_constraint_fkey.c
- test/engine-luatest/gh_8936_foreign_key_wrong_reference_test.lua 217 additions, 0 deletions...gine-luatest/gh_8936_foreign_key_wrong_reference_test.lua
Loading