Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Truncating based on config, not inserts #7

@clphillips

Description

@clphillips

It would be nice if invoking Fixture::down() truncated based on the tables defined by the config files, as opposed to the tables actually inserted into.

That would make it possible to use this library to seed databases. For example, I run my database migration, then I seed the database. The seed process needs to truncate data before inserting (which is contrary to fixtures for integration testing) because we're not starting with a fresh database.

Thoughts? I'm happy to hack on this and submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions