Skip to content

Support postgres 'CREATE EXTENSION' in migration files #4474

@gustavkarlsson

Description

@gustavkarlsson

Description

Some migrations might need to enable extensions such as uuid-ossp for generating UUID:s. Typically we would do this by executing CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; or similar.

This doesn't impact the schema in any way, but it's useful for running the actual migrations. Sqldelight should (?) only need to recognize the syntax and ignore it for schema generation. Therefore I believe it should be fairly easy to implement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions