-
Notifications
You must be signed in to change notification settings - Fork 381
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
php artisan wink:migrate does nothing #8
Comments
Having same issue here, but in my case I did a fresh install laravel project with database connection same as the current. Already doing some check. And I think the problem comes from here: // wink/src/Console/MigrateCommand.php
$initialMigration = ! Schema::connection(config('wink.database_connection'))->hasTable('wink_posts');
...
if ($initialMigration) {
WinkAuthor::create([
...
]);
...
} So the default login credentials will not created if the |
@ladhadha so in your case the tables are created by no initial user is created? The check shouldn't pass if the table doesn't exist. |
@javorszky can you share the entries in your migration table? |
@themsaid yes the tables was created. But theres no initial user create. The steps that I run was.
Also I try to remove all, Nothing to migrate.
Illuminate\Database\QueryException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wink.wink_authors' doesn't exist (SQL: insert into `wink_authors` (`id`, `name`, `slug`, `bio`, `email`, `password`, `updated_at`, `created_at`) values (cf3c3e5f-0849-47af-bd1d-16fa946d9d16, Regina Phalange, regina-phalange, This is me., admin@mail.com, $2y$10$N0xME7bPmDPkYP58kFiwweypBwyTnyMLXwKoeXNJ4xPJbOpJk3hCy, 2018-11-08 08:43:59, 2018-11-08 08:43:59)) Migration not running and no table was created. Already inspecting why the migration, it's because the migration file: |
It only has the laravel ones, but the tables for wink exist. I've done it again, here are steps to reproduce from nothing:
Attached is a complete database dump |
Guys you're running the installation steps wrong, don't run |
So for the fresh project, |
If you follow the installation steps as is it'll work .. composer require, wink:install, wink:migrate. |
Right, but what the installation steps do not say is that the installation expects a base laravel to be up and running already. ie these needed to have been run before doing the
|
I just ran into this same issue and I agree with @javorszky ... docs need to be updated to remove any assumptions that laravel migrate needs to be run. That's not explicit (not implicit enough) in the current documentation to reduce confusion. Including when to run the traditional laravel setup commands (and/or when not to) to be more explicit in the setup. That would help immensely. |
As per instructions, running
php artisan wink:migrate
should give me default login credentials. However this is what happens for me:To further complicate things, I haven't set up a different database connection for wink, but decided to reuse the one laravel uses (because why not...)
The text was updated successfully, but these errors were encountered: