Skip to content

Conversation

0xOnah
Copy link

@0xOnah 0xOnah commented Aug 3, 2025

What

Rename parameter databaseName to databaseDriverName in NewWithInstance, NewWithDatabaseInstance functions and in the migrate object to clarify its purpose.

Why

The current name, databaseName, may confuse users into thinking it refers to the actual name of their database (e.g. "bank", "test_db"), when in reality it refers to the database driver name (e.g. "postgres", "mysql").

This change improves readability and aligns with the sourceName parameter, which correctly indicates that it's the name of the source driver.

@dhui would you mind reviewing when you get a chance? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant