You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Postgres and pgx - Add x-migrations-table-quoted url query option to postgres and pgx drivers (#95)
By default, gomigrate quote migrations table name, if `x-migrations-table-quoted` is enabled, then you must to quote migrations table name manually, for instance `"gomigrate"."schema_migrations"`
* Work In Progress
|`x-migrations-table`|`MigrationsTable`| Name of the migrations table |
8
+
|`x-migrations-table-quoted`|`MigrationsTableQuoted`| By default, migrate quotes the migration table for SQL injection safety reasons. This option disable quoting and naively checks that you have quoted the migration table name. e.g. `"my_schema"."schema_migrations"`|
8
9
|`x-statement-timeout`|`StatementTimeout`| Abort any statement that takes more than the specified number of milliseconds |
returnnil, fmt.Errorf("x-migrations-table must be quoted (for instance '\"migrate\".\"schema_migrations\"') when x-migrations-table-quoted is enabled, current value is: %s", migrationsTable)
wantErr:="x-migrations-table must be quoted (for instance '\"migrate\".\"schema_migrations\"') when x-migrations-table-quoted is enabled, current value is: migrate.schema_migrations"
|`x-migrations-table`|`MigrationsTable`| Name of the migrations table |
8
+
|`x-migrations-table-quoted`|`MigrationsTableQuoted`| By default, migrate quotes the migration table for SQL injection safety reasons. This option disable quoting and naively checks that you have quoted the migration table name. e.g. `"my_schema"."schema_migrations"`|
8
9
|`x-statement-timeout`|`StatementTimeout`| Abort any statement that takes more than the specified number of milliseconds |
0 commit comments