forked from science-ation/science-ation
- Rename YSF to YSC
- Add the help websites we lost somewhere for STO and YSC - Copy the $config ysf login data into the fairs data
This commit is contained in:
parent
bc646bc2dc
commit
ed04710018
@ -1 +1 @@
|
|||||||
135
|
136
|
||||||
|
34
db/db.update.136.php
Normal file
34
db/db.update.136.php
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?
|
||||||
|
|
||||||
|
|
||||||
|
function db_update_136_pre()
|
||||||
|
{
|
||||||
|
global $config;
|
||||||
|
mysql_query("UPDATE fairs SET `name` = 'Youth Science Canada',
|
||||||
|
`abbrv` = 'YSC',
|
||||||
|
`website` = 'http://apps.ysf-fsj.ca/awarddownloader/help.php',
|
||||||
|
`enable_stats` = 'yes',
|
||||||
|
`enable_awards` = 'yes',
|
||||||
|
`enable_winners` = 'yes',
|
||||||
|
`username` = '{$config['ysf_region_id']}',
|
||||||
|
`password` = '{$config['ysf_region_password']}'
|
||||||
|
|
||||||
|
WHERE
|
||||||
|
`url`='https://secure.ysf-fsj.ca/awarddownloader/index.php'");
|
||||||
|
|
||||||
|
mysql_query("UPDATE fairs SET `abbrv` = 'STO',
|
||||||
|
`website` = 'http://www.scitechontario.org/awarddownloader/help.php',
|
||||||
|
`enable_stats` = 'yes',
|
||||||
|
`enable_awards` = 'yes',
|
||||||
|
`enable_winners` = 'yes'
|
||||||
|
WHERE
|
||||||
|
`url`='http://www.scitechontario.org/awarddownloader/index.php'");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function db_update_136_post()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
4
db/db.update.136.sql
Normal file
4
db/db.update.136.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ALTER TABLE `fairs` CHANGE `type` `type` ENUM( 'feeder', 'sfiab', 'ysc' ) NOT NULL ;
|
||||||
|
|
||||||
|
UPDATE fairs SET `type`='ysc' WHERE `type`='';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user