| @@ 36-42 (lines=7) @@ | ||
| 33 | } |
|
| 34 | ||
| 35 | // Comments set by $table->string('column')->comment('comment'); |
|
| 36 | foreach ($blueprint->getColumns() as $column) |
|
| 37 | { |
|
| 38 | if (isset($column['comment'])) |
|
| 39 | { |
|
| 40 | $this->connection->statement(sprintf('comment on column %s.%s is \'%s\'', $blueprint->getTable(), $column['name'], $column['comment'])); |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | // Comments set by $table->commentColumn('column', 'comment'); |
|
| 45 | foreach ($blueprint->commentColumn as $column) |
|
| @@ 45-51 (lines=7) @@ | ||
| 42 | } |
|
| 43 | ||
| 44 | // Comments set by $table->commentColumn('column', 'comment'); |
|
| 45 | foreach ($blueprint->commentColumn as $column) |
|
| 46 | { |
|
| 47 | if (isset($column['comment'])) |
|
| 48 | { |
|
| 49 | $this->connection->statement(sprintf('comment on column %s.%s is \'%s\'', $blueprint->getTable(), $column['name'], $column['comment'])); |
|
| 50 | } |
|
| 51 | } |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||