-
Notifications
You must be signed in to change notification settings - Fork 15
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
Clarify installation #12
Comments
What's the users table migration file name? |
@musonza the file name is 2014_10_12_000000_create_users_table.php |
Is your table engine set to |
@musonza the output after install again your package and execute the command: Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table at C:\xampp\htdocs\xxxx\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
Exception trace: 1 PDOException::("SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint") 2 PDOStatement::execute() Please use the argument -v to see more details. |
What about your database engine? Check this for more information https://laracasts.com/discuss/channels/general-discussion/sqlstatehy000-general-error-1215-cannot-add-foreign-key-constraint?page=1 |
The query SHOW VARIABLES LIKE '%ENGINE%' show "default_storage_engine" "InnoDB" i have also set $table->engine='InnoDB'; but the result is not change. |
for now comment out this groups/database/migrations/create_groups_tables.php Lines 30 to 33 in 9bde27d
When i get a chance i will look at it. If it's not test database then i would say wait for the fix or if you can fix send a PR |
@musonza if i found the fix i can sent a PR |
Set
in the migration constructor if your user table ID was created without bigIncrements i.e increments |
Hi author thanks for these wounder full package, Iam having question how to add a Member later if we decide to add a new member. Thanks in advance |
actually iam thinking it like these way simple $group->addMembers($groupId, $membersArray); Iam not experience user in laravel pls let me know if it exist like these way? Thanks in advance |
Hi
I'm working on laravel 5.8 and after install with composer i'm update manually the files config/app.php and
also manually update the databases after the run command "php artisan migrate" i'm receive as output the following error
php artisan migrate
Migrating: 2019_04_30_125539_create_groups_tables
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table
groups
add constraintgroups_user_id_foreign
foreign key (use r_id
) referencesusers
(id
) on delete cascade)for what reasons?
The text was updated successfully, but these errors were encountered: