Skip to content

DROP script not being generated in sql file export #2078

Description

@amkaii

Bug description
When exporting model to an SQL file, either through the GUI or pgmodeler-cli, opting to "generate a DROP script" will have no effect if not exporting with the split format.

How to reproduce
Attempt to export model to SQL file without using split format with the "generate DROP script" option enabled.
E.g.: pgmodeler-cli -ef -if model.dbm -of out -gd

Expected behavior
Generation of two files, perhaps [{of}_up.sql, {of}_down.sql] or a new {of} directory with up and down files in it.

Info about your desktop

  • OS: CachyOS x86_64
  • Version: Linux 7.0.12-1-cachyos
  • pgModeler version:
    • CLI: pgmodeler-cli 2.0.0-beta 20260522.42777ff0b
    • GUI: pgModeler version: 2.0.0-beta

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions