question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

schema of migrations table

See original GitHub issue

Is it possible to specify the schema of the migrations table? I’d like to separate tables by schema, and have separate migrations for each schema. That way, I can do drop schema ... cascade to recreate parts of my database. This would allow me to iterate fast on a schema while preserving any information I might have in other schemas.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dlidstromcommented, Jun 4, 2021

Ok, no problem. Thanks for the quick reply and for being honest.

0reactions
sliftycommented, Jul 13, 2022

If #93 is merged I believe it would become possible to set a search_path on a client before running migrations and passing that client to the migration command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Schema Migrations Table - ruby on rails
The schema_migrations table holds the revision numbers; with the last record being the most recently executed migration. You can just manipulate these ...
Read more >
Custom Migrations History Table - EF Core
You can change the schema and table name using the MigrationsHistoryTable() method in OnConfiguring() (or ConfigureServices() on ASP.NET Core).
Read more >
Schema migration
A schema migration is performed on a database whenever it is necessary to update or revert that database's schema to some newer or...
Read more >
Database: Migrations - Laravel - The PHP Framework For ...
The Laravel Schema facade provides database agnostic support for creating and manipulating tables across all of Laravel's supported database systems. Typically, ...
Read more >
Active Record Migrations - Rails Edge Guides
The rails commands that manipulate migrations and your schema. ... This migration adds a table called products with a string column called name...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found