To preserve the old applications, you must follow these steps:
su - mysql cd ~www/mysqlarchive mkdir -p applications/`date +%Y` cd !$ /usr/local/mysql/bin/mysqldump -u root reu_4 > reu4_4.db /usr/local/mysql/bin/mysqldump -u root securit_4 > securit_4.db /usr/local/mysql/bin/mysqldump -u root star_4 > star_4.db /usr/local/mysql/bin/mysqldump -u root wise_4 > wise_4.dbCheck the contents of the files.
reu_4
,
securit_4
, star_4
and wise_4
), perform the following operations. We are doing two things: 1) Moving the previous database from apply
to applyyear
where year
is either this year or next year and 2) copying just the structure (not the data and structure) from the newly created database (applyyear
) back to apply
.
apply
table.
Operations
tab
Move table to
area, rename the database to applyyear
, for example, apply2015
apply
The following php updates must occur:
~www/php/include/apply.inc.php
and update the year in
Standing as of February 1, 201X
~www/php/apply/apply.php
and add a menu item for the previous year.
// Each year, add a clause for the previous year. if (($selector != "all" || $table != "apply2014") && sqli_exists($db, "apply2014")) { $marginCommands .= "<li><a href="/$group/$originalSubpage/all/2014">All 2013 ${recordShort}s</a></li>n"; }Copy the if clause and replace the year in the copy with the current year.
// Each year, add a clause for the previous year. if (($selector != "all" || $table != "apply2015") && sqli_exists($db, "apply2015")) { $marginCommands .= "<li><a href="/$group/$originalSubpage/all/2015">All 2015 ${recordShort}s</a></li>n"; } if (($selector != "all" || $table != "apply2014") && sqli_exists($db, "apply2014")) { $marginCommands .= "<li><a href="/$group/$originalSubpage/all/2014">All 2013 ${recordShort}s</a></li>n"; }
This is necessary so that Aimee can look at the old applications.