Skip to content

Add SyncSchema with force and skip_if_exists flags #7

@CaliLuke

Description

@CaliLuke

Add SyncSchema(ctx, db, opts...) to gotype/migrate.go that combines schema introspection + diff + apply in one call.

Options: WithForce() (apply destructive changes), WithSkipIfExists() (skip if schema already matches). Currently MigrateFromEmpty and Migrate exist but lack these convenience flags.

Files: gotype/migrate.go, gotype/migrate_test.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions