sql-migrate icon indicating copy to clipboard operation
sql-migrate copied to clipboard

SQL schema migration tool for Go.

Results 94 sql-migrate issues
Sort by recently updated
recently updated
newest added

I am working in a project where there is a Docker container with the command: `sql-migrate up -config/init.yml`. I would like to enable logs, but I can't change this command...

https://github.com/rubenv/sql-migrate/blob/a32ed26c37ea1bdfd4e08f8aae7b494e7801fb52/sql-migrate/config.go#L82 Datasource is os.envvar expanded, but table is not. Use case: using sql-migrate for regular migrations (migrations table) but also for gitops sql patches (hotfixes table)

Hi, We've been using different libraries to migrate our schema, recently we ran into issues while trying to apply some complex migrate logic. In ROR we wrote such logic using...

Sometimes it's needed to write custom logic (usually for data migration, not scheme) in Go during migration. Please consider this change.

Of all the dependencies in my project, `sql-migrate` is the slowest to build on a clean run. I think this was because of the references to all the database drivers...

Our company has a use case to provide the environment information through the shell environment instead of from a `dbconfig.yml` file. We have augmented the `sql-migrate` binary's capability to check...

I add `verbose` flag. If I use it I`ll see queries in console for up and down commands

Hello I'm using SqlServer 2017. When I set a schema via `.SetSchema(...)` I get an error; ``` mssql: Incorrect syntax near the keyword 'schema' ``` The sql produced for creating...

It is possible to reference environment variables in the `dbconfig.yml`. I am used to work with a `.env` file here. But sql-migrate is not reading from it.

i am trying to create the function in `.sql` file here is my syntax ``` -- +migrate Up CREATE OR REPLACE FUNCTION trigger_set_timestamp() RETURNS TRIGGER AS $$ BEGIN NEW.updated_at =...