Minimal-safe
When to use it
Section titled “When to use it”- first migration from a real SQLite file
- you want durable target writes
- you want the simplest safe starting point
migration.toml
Section titled “migration.toml”schema = "app"on_schema_exists = "error"source_snapshot_mode = "none"unlogged_tables = falseclean_orphans = falsepreserve_defaults = true
[source]type = "sqlite"dsn = "./source.db"
[target]dsn = "postgres://postgres:postgres@127.0.0.1:5432/target_db?sslmode=disable"
[type_mapping]json_as_jsonb = truesanitize_json_null_bytes = trueunknown_as_text = false
[hooks]before_data = []after_data = []before_fk = []after_all = []Raw files: migration.toml