Open svevang opened 5 months ago
The schema_migrations
table is suppressed from the dump in
I do not understand the intent of doing that.
@woodhull thanks for the link ! that's gonna be ez monkey patch :D for me
@PNixx can you maybe explain why schema_migrations ar_internal_metadata
are not dumped in the structure ?
Version: clickhouse-activerecord (1.0.9) Rails: 7.1
I have a rails app with
config.active_record.schema_format = :sql
. When I run thedb:schema:dump
command the schema_migrations table is being ignored and does not end up in thedb/clickhouse_structure.sql
file.The migrations versions are considered part of the schema dump. And I do end up with statements appended to the end of the file that look like:
However, because the
schema_migrations
table is not preset in the structure file, when I do something likeRAILS_ENV=test ./bin/rails db:create db:prepare
these insert statements produce an error, because the schema_migrations table is not present.Compared to the PostgreSQL adapter (for example), there is a schema_migrations table in the structure dump that looks like: