view epgrec_upgrade.php @ 33:1fc71046946c

new file: js/jquery.validate.min.js
author Sushi-k <epgrec@park.mda.or.jp>
date Mon, 27 Jul 2009 18:55:14 +0900
parents 9ab4184561d9
children e5f9aa34d06f
line wrap: on
line source

#!/usr/bin/php
<?php
include_once('config.php');

 $dbh = mysql_connect( DB_HOST, DB_USER, DB_PASS );
 if( $dbh !== false ) {
	
	$sqlstr = "use ".DB_NAME;
	mysql_query( $sqlstr );
	
	$sqlstr = "set NAMES 'utf8'";
	mysql_query( $sqlstr );
	
	// RESERVE_TBL
	// description -> text
	$sqlstr = "alter table ".TBL_PREFIX.RESERVE_TBL." modify description text default null;";
	mysql_query( $sqlstr );
	// path -> blob
	$sqlstr = "alter table ".TBL_PREFIX.RESERVE_TBL." modify path blob default null;";
	mysql_query( $sqlstr );
	
	// PROGRAM_TBL
	// descripton -> text
	$sqlstr = "alter table ".TBL_PREFIX.PROGRAM_TBL." modify description text default null;";
	mysql_query( $sqlstr );
 }
 else exit( "Can't connect DB\n");

?>