Skip to content

Release v1.7.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 16:56
· 10 commits to main since this release
Immutable release. Only release title and notes can be modified.
142af1f

Behaviour change

cloning:run now stops with exit code 4 (validation error) before copying any rows when key remapping would rewrite a foreign key column twice or wrongly: a column listed under more than one remapped table without type_column, the same type_value used twice for one column, or a type_column that does not exist in the table. Before, such configs ran and silently rewrote values against the wrong key map. The inline foreign_keys of remapping columns are now validated like the key_remapping: section. To fix a polymorphic relation (e.g. addressable_type + addressable_id), add type_column and type_value to each foreign key entry.

What's Changed

  • docs(changelog): note flag negation behaviour change in v1.6.0 by @rokde in #267
  • feat(cloning): support polymorphic relations in key remapping by @rokde in #268

Full Changelog: v1.6.0...v1.7.0

See the full CHANGELOG.md.


Installation

File Platform Requires
clonio-linux-x86_64 Linux — x86_64 (Intel/AMD) nothing
clonio-linux-aarch64 Linux — aarch64 (ARM64) nothing
clonio-macos-aarch64 macOS — Apple Silicon (M1/M2/M3/M4) nothing
clonio.phar Any platform PHP 8.5
ghcr.io/clonio-dev/clonio:v1.7.0 linux/amd64 + linux/arm64 Docker

Linux

mv clonio-linux-x86_64 clonio   # or clonio-linux-aarch64 for ARM
chmod +x clonio
sudo mv clonio /usr/local/bin/clonio
clonio --version

macOS

⚠️ The binary is currently unsigned. macOS Gatekeeper will block it on first run.

mv clonio-macos-aarch64 clonio
chmod +x clonio
xattr -d com.apple.quarantine clonio
sudo mv clonio /usr/local/bin/clonio
clonio --version

PHAR (any platform with PHP 8.5)

php clonio.phar --version

Docker

docker pull ghcr.io/clonio-dev/clonio:v1.7.0
docker run --rm -v "$(pwd)":/workspace \
  ghcr.io/clonio-dev/clonio:v1.7.0 --version

See docs/docker-distribution.md for pinning, tag scheme, and common recipes.

Composer (dev dependency)

composer require --dev clonio-dev/clonio-cli
vendor/bin/clonio --version