Skip to content

Wish List: Prescript and Postscript #40

@TonBits

Description

@TonBits

Prescript - a place where we can put custom SQL scripts before the generated SQLS.
Useful for adding CREATE DATABASE or CREATE SCHEMA and DROP TABLE IF EXISTS statements

Postscript - a place where we can put custom SQL scripts after the tables are created.
Useful for adding INSERT statements like inserting default values to the tables etc.

So when the scripts are generated, you can just run all of the scripts and it will restore your database into its initial form.
No need to maintain a drop SQL, a separate INSERT SQL for initial data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions