Skip to content

Disable transaction on subset of scripts #34

@ben-purcell

Description

@ben-purcell

Hi there,

I am using the dbup cli on a large project which works fine for the most part. I am using the option to run each script inside its own transaction.

I've just come across a problem, one of our scripts is required to run outside of a transaction. From what I can tell, my options are:

  1. Run without transactions and add the transaction boilerplate to each script. Kind of annoying to have to change for just 1 script, because the current setup works fine for the rest of our scripts.
  2. Put the "non-transaction" scripts in another folder and run them separately - only problem is that some of the transaction scripts may depend on the "non-transacton" scripts.

Any ideas or workarounds? FYI the statement that cannot go inside a transaction is for SQL Server:

CREATE FULLTEXT CATALOG ...

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