| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function up() |
||
| 16 | { |
||
| 17 | $this->getSchema()->create('comment_answers', function($table) { |
||
| 18 | $table->increments('id'); |
||
| 19 | $table->integer('comment_id')->unsigned(); |
||
| 20 | $table->integer('user_id')->unsigned(); |
||
| 21 | $table->string('guest_name', 100); |
||
| 22 | $table->text('message'); |
||
| 23 | $table->string('lang', 32)->default('en'); |
||
| 24 | $table->string('ip', 64)->default('127.0.0.1'); // ipv4 and ipv6 (32 chars + 7 digits is max) |
||
| 25 | $table->boolean('moderate')->default(false); |
||
| 26 | $table->timestamps(); |
||
| 27 | }); |
||
| 28 | parent::up(); |
||
| 29 | } |
||
| 49 | } |