added db-mutation and translations, updates #328

This commit is contained in:
Nils Bohrs
2013-11-03 11:20:24 +01:00
parent 67ddf1af20
commit 015e857ffa
4 changed files with 22 additions and 1 deletions

View File

@@ -356,6 +356,14 @@
sql("DROP TABLE IF EXISTS `mapresult`");
sql("DROP TABLE IF EXISTS `mapresult_data`");
}
function dbv_121() // add user profile flag for receiving newsletter
{
if (!sql_field_exists('user','accept_mailing'))
{
sql("ALTER TABLE `user` ADD COLUMN `accept_mailing` tinyint(1) NOT NULL default '1' AFTER `mailing_problems`");
}
}
// When adding new mutations, take care that they behave well if run multiple