Skip to content

pull request#1

Open
primemix wants to merge 1 commit into
masterfrom
dev
Open

pull request#1
primemix wants to merge 1 commit into
masterfrom
dev

Conversation

@primemix
Copy link
Copy Markdown
Owner

@primemix primemix commented Dec 4, 2016

No description provided.

*/
public function up()
{
$this->addColumn('university', 'university_name', $this->string());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You don't need to use "university_" prefix for all the fields. It's enought to call them "id", "name" (if they are inside of the "university" table. But in other tables you need to specify the foreign table while naming the id fields (for example "university_id" inside the "student" table)

{
$this->createTable('teacher', [
'id' => $this->primaryKey(),
'teacher_name' => $this->string(80)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The same. Please call this field "name" next time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants