GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

m140924_111621_export_CreateExportMap::safeUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 1
Metric Value
c 3
b 1
f 1
dl 0
loc 10
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
namespace Craft;
4
5
/**
6
 * The class name is the UTC timestamp in the format of mYYMMDD_HHMMSS_pluginHandle_migrationName.
7
 *
8
 * @author    Bob Olde Hampsink <[email protected]>
9
 * @copyright Copyright (c) 2015, Bob Olde Hampsink
10
 * @license   MIT
11
 *
12
 * @link http://github.com/boboldehampsink
13
 */
14
class m140924_111621_export_CreateExportMap extends BaseMigration
15
{
16
    /**
17
     * Any migration code in here is wrapped inside of a transaction.
18
     *
19
     * @return bool
20
     */
21
    public function safeUp()
22
    {
23
        // Create the craft_export_map table
24
        craft()->db->createCommand()->createTable('export_map', array(
25
            'settings' => array('column' => 'text'),
26
            'map' => array('column' => 'text'),
27
        ), null, true);
28
29
        return true;
30
    }
31
}
32