Issue 112: Missing git information for some files (final fix)

This commit is contained in:
Nathan Adams
2016-04-23 12:01:09 -05:00
parent 1fdddf2501
commit 3f699e0afd
3 changed files with 130 additions and 54 deletions

View File

@@ -0,0 +1,29 @@
<?php
function IDF_Migrations_32ExternalFile_up()
{
$table = Pluf::factory('IDF_Scm_Cache_Git')->getSqlTable();
$sql = array();
$sql["MySQL"] = "ALTER TABLE " . $table . " CHANGE COLUMN `githash` TEXT NOT NULL DEFAULT '' AFTER `project`;";
$db = Pluf::db();
$engine = Pluf::f('db_engine');
$db->execute($sql[$engine]);
}
function IDF_Migrations_32ExternalFile_down()
{
$table = Pluf::factory('IDF_Scm_Cache_Git')->getSqlTable();
$sql = array();
$sql["MySQL"] = "ALTER TABLE " . $table . " CHANGE COLUMN `githash` VARCHAR(40) NOT NULL AFTER `project`;";
$db = Pluf::db();
$engine = Pluf::f('db_engine');
$db->execute($sql[$engine]);
}