Skip to content

Commit

Permalink
Merge pull request #1751 from MGatner/feature/guide-forge-fix
Browse files Browse the repository at this point in the history
Guide: Moving misplaced text under correct heading
  • Loading branch information
jim-parry authored Feb 20, 2019
2 parents 8b32c04 + bfeb00c commit f034b4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions user_guide_src/source/dbmgmt/forge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,15 @@ and unique keys with specific methods::
$forge->addPrimaryKey('blog_id');
// gives PRIMARY KEY `blog_id` (`blog_id`)

Foreign Keys help to enforce relationships and actions across your tables. For tables that support Foreign Keys,
you may add them directly in forge::

$forge->addUniqueKey(['blog_id', 'uri']);
// gives UNIQUE KEY `blog_id_uri` (`blog_id`, `uri`)


Adding Foreign Keys
===================

::
Foreign Keys help to enforce relationships and actions across your tables. For tables that support Foreign Keys,
you may add them directly in forge::

$forge->addForeignKey('users_id','users','id');
// gives CONSTRAINT `TABLENAME_users_foreign` FOREIGN KEY(`users_id`) REFERENCES `users`(`id`)
Expand Down

0 comments on commit f034b4d

Please sign in to comment.