| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class Version20170623205224 extends AbstractMigration |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param Schema $schema |
||
| 17 | */ |
||
| 18 | public function up(Schema $schema): void |
||
| 19 | { |
||
| 20 | $table = $schema->createTable('usage_projects'); |
||
| 21 | $table->addColumn('id', 'integer', ['autoincrement' => true]); |
||
| 22 | $table->addColumn('tool', 'string'); |
||
| 23 | $table->addColumn('project', 'string'); |
||
| 24 | $table->addColumn('count', 'integer'); |
||
| 25 | $table->setPrimaryKey(['id']); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Schema $schema |
||
| 30 | */ |
||
| 31 | public function down(Schema $schema): void |
||
| 34 | } |
||
| 35 | } |
||
| 36 |