Skip to content

test: [TestCase] define database migrations #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

glennfriend
Copy link

No description provided.

@glennfriend glennfriend added the enhancement Enhancement label Jul 6, 2023
@glennfriend glennfriend requested a review from ericHao22 July 6, 2023 04:07
@glennfriend glennfriend self-assigned this Jul 6, 2023
Copy link
Contributor

@ericHao22 ericHao22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+ with a comment, thanks!!

Comment on lines +28 to +35
* Define database migrations.
*/
protected function defineDatabaseMigrations(): void
{
$this->loadLaravelMigrations();
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
$this->loadMigrationsFrom(__DIR__ . '/Migrations');
}
Copy link
Contributor

@ericHao22 ericHao22 Jul 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 comment

當初沒特別加的原因是,不一定每個套件都會有table schema,要是沒有的話它嘗試去load migration有可能會報錯?

不過如果真的要加感覺可以保留$this->loadLaravelMigrations();,然後其他的先註解掉也行

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我覺得可以都加上去但是都註解掉

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

Successfully merging this pull request may close these issues.

4 participants