Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class Version20171208040821 extends AbstractMigration |
||
14 | { |
||
15 | /** |
||
16 | * @param Schema $schema |
||
17 | */ |
||
18 | public function up(Schema $schema): void |
||
19 | { |
||
20 | $table = $schema->createTable('usage_api_timeline'); |
||
21 | $table->addColumn('id', 'integer', ['autoincrement' => true]); |
||
22 | $table->addColumn('date', 'date'); |
||
23 | $table->addColumn('endpoint', '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 |