コード例 #1
0
ファイル: maintenance.php プロジェクト: Tjorriemorrie/app
$total = 0;
$added = 0;
$invalid = 0;
$duplicate = 0;
$dupInDb = 0;
$removed = 0;
$videoList = array();
$video = new VideoInfo();
/**
 * Handle parameter --createtable
 *
 * Create the video_info table
 */
if ($createTable) {
    if (!$dryrun) {
        if (!$video->createTableVideoInfo()) {
            die("Unable to create the video_info table");
        }
    }
    printText("Created video_info table.\n");
    // Stop here if we don't
    if ($dryrun) {
        printText("[DRY RUN] The video_info table must exist before performing any other functions, exiting ...");
        exit(0);
    }
}
/**
 * Handle parameter --alterTable
 *
 * Update the schema to the most recent version
 */