Skip to content

Commit 80d9973

Browse files
committed
update filed
1 parent 6ddf36b commit 80d9973

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

migrations/M161111090444Create_question_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function up()
1515
}
1616
$this->createTable('{{%question}}', [
1717
'id' => $this->primaryKey(),
18-
'user_id' => $this->integer()->notNull(),
18+
'user_id' => $this->integer()->unsigned()->notNull(),
1919
'title' => $this->string(100)->notNull(),
2020
'alias' => $this->string(100)->notNull(),
2121
'price'=>$this->smallInteger(6)->unsigned()->defaultValue(0),

migrations/M161111090555Create_question_answer_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function up()
1616

1717
$this->createTable('{{%question_answer}}', [
1818
'id' => $this->primaryKey(),
19-
'user_id' => $this->integer()->notNull(),
19+
'user_id' => $this->integer()->unsigned()->notNull(),
2020
'question_id' => $this->integer()->notNull(),
2121
'content' => $this->text()->notNull(),
2222
'adopted_at' => $this->integer()->unsigned()->defaultValue(0),

0 commit comments

Comments
 (0)