Indefero

Indefero Commit Details


Date:2011-12-20 16:39:40 (13 years 1 day ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:16573daee0837e5cc0ba51bd352c6a79a36a8b60
Parents: 5ffe66cbfbdc5f30372a9bcc3f6ca4f679bc1520
Message:Migrating the timeline entries according to the new model names was previously forgotten.

Changes:

File differences

src/IDF/Migrations/21WikiPageRevisionName.php
3636
3737
3838
39
40
3941
4042
4143
......
5355
5456
5557
58
59
5660
}
$db->execute('ALTER TABLE '.$db->pfx.'idf_wikirevisions RENAME TO '.$db->pfx.'idf_wikipagerevs');
$db->execute("UPDATE ".$db->pfx."idf_timeline SET model_class='IDF_Wiki_Page' WHERE model_class LIKE 'IDF_WikiPage'");
$db->execute("UPDATE ".$db->pfx."idf_timeline SET model_class='IDF_Wiki_PageRevision' WHERE model_class LIKE 'IDF_WikiRevision'");
}
function IDF_Migrations_21WikiPageRevisionName_down($params=null)
}
$db->execute('ALTER TABLE '.$db->pfx.'idf_wikipagerevs RENAME TO '.$db->pfx.'idf_wikirevisions');
$db->execute("UPDATE ".$db->pfx."idf_timeline SET model_class='IDF_WikiPage' WHERE model_class LIKE 'IDF_Wiki_Page'");
$db->execute("UPDATE ".$db->pfx."idf_timeline SET model_class='IDF_WikiRevision' WHERE model_class LIKE 'IDF_Wiki_PageRevision'");
}

Archive Download the corresponding diff file

Page rendered in 0.08296s using 13 queries.