From d6bbe5701e2a1fbb5f6eb24fb82e7631a18c43e4 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 26 Jan 2006 23:25:33 +0000 Subject: [PATCH] add a quick script to help with debugging, it dumps out the scheduler data (and also any other data in the tables!) --- scripts/emptyscheduledata.php | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 scripts/emptyscheduledata.php diff --git a/scripts/emptyscheduledata.php b/scripts/emptyscheduledata.php new file mode 100644 index 0000000..e6bd885 --- /dev/null +++ b/scripts/emptyscheduledata.php @@ -0,0 +1,40 @@ + + Copyright (C) 2005 James Grant + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation, version 2. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ +?> +1) +{ + echo "TRUNCATING TABLE DATA....\n"; + mysql_query("TRUNCATE TABLE judges_teams"); + mysql_query("TRUNCATE TABLE judges_teams_awards_link"); + mysql_query("TRUNCATE TABLE judges_teams_link"); + mysql_query("TRUNCATE TABLE judges_teams_timeslots_link"); + mysql_query("TRUNCATE TABLE judges_teams_timeslots_projects_link"); + echo "DONE.\n\n"; +} +?>