hasTable('shares_limits')) { $table = $schema->createTable('shares_limits'); $table->addColumn('id', Types::STRING, [ 'notnull' => true, 'length' => 32, ]); $table->addColumn('limit', Types::BIGINT, [ 'notnull' => true, 'length' => 8, ]); $table->addColumn('downloads', Types::BIGINT, [ 'notnull' => true, 'length' => 8, 'default' => 0, ]); $table->setPrimaryKey(['id']); } return $schema; } }