Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function up(Schema $schema) |
||
19 | { |
||
20 | $tbl = $this->getTableName(); |
||
21 | /** @var $con Connection */ |
||
22 | $con = $this->connection; |
||
23 | $con->exec("CREATE TABLE `{$tbl}` ( |
||
24 | `name` varchar(20) NOT NULL, |
||
25 | `value` char(32) NOT NULL, |
||
26 | PRIMARY KEY (`name`,`value`) |
||
27 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci "); |
||
28 | |||
29 | } |
||
30 | |||
36 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.