Skip to content

T 30 schema fixtures - #34

Merged
niden merged 10 commits into
masterfrom
T-30-schema-fixtures
Aug 6, 2026
Merged

T 30 schema fixtures#34
niden merged 10 commits into
masterfrom
T-30-schema-fixtures

Conversation

@niden

@niden niden commented Aug 6, 2026

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG
  • I have created a PR for the documentation about this change

Schema fixtures. Extend Phalcon\Talon\Database\Schema\AbstractSchema and run talon schema. Configured with schema_source, schema_namespace, schema_output, schema_pre and schema_post.
talon schema writes a directory per dialect: _preSchema.sql, one .sql per table, manifest.json, _postSchema.sql.
Connection::loadSchema() accepts a dialect directory as well as a flat .sql file.
Connection added addTable() and tableExists(); DatabaseTrait added addTable().
SchemaWriter throws SchemaTableDuplicate when two definitions declare the same table.
resources/schema/{mysql,pgsql,sqlite}.sql are now generated directories, and dump_file in the four resources/phpunit.*.xml configs points at them.
bin/talon now honors the Composer autoload path.
docs/index.md was missing MariaDB throughout, six exceptions, and the talon command line runner.

Thanks

@niden niden self-assigned this Aug 6, 2026
@niden niden added the enhancement New feature or request label Aug 6, 2026
@niden
niden merged commit adaec80 into master Aug 6, 2026
@niden
niden deleted the T-30-schema-fixtures branch August 6, 2026 22:19
@niden niden mentioned this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant