-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8448 from kenjis/docs-forge-data-types
docs: add about field data types on Forge
- Loading branch information
Showing
4 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ | |
'default' => 'pending', | ||
], | ||
]; | ||
$forge->addField($fields); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
|
||
$forge->dropColumn('table_name', 'column_1,column_2'); // by proving comma separated column names | ||
$forge->dropColumn('table_name', 'column_1,column_2'); // by proving comma separated column names | ||
$forge->dropColumn('table_name', ['column_1', 'column_2']); // by proving array of column names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
|
||
// MySqli Produces: ALTER TABLE `tablename` DROP PRIMARY KEY | ||
// MySQLi Produces: ALTER TABLE `tablename` DROP PRIMARY KEY | ||
// Others Produces: ALTER TABLE `tablename` DROP CONSTRAINT `pk_tablename` | ||
$forge->dropPrimaryKey('tablename'); |