src/MySQL/MySQLTable.php
public function updateTable()
	{
		//get the instance of the FileInfo class
		$file_info = FileInfo::Create($this->table_file_path);

		//this file already exists
		if($file_info->isFile())
		{
			//load the clas into momeory
			include $file_info->getPathname();

			$class_name = substr($file_info->getFilename(), 0,-4);

			//get the database table class
			$table_object = new $class_name();

			//get the table columns, create SQL and execute
			$this->getColumns($table_object)->updateSQL()->executeUpdate();

			//echo "{$this->query_string}";exit(0);

		}

		//this file has not been created yet
		else
		{


		}

	}
public function updateTable()
	{
		//get the instance of the FileInfo class
		$file_info = FileInfo::Create($this->table_file_path);

		//this file already exists
		if($file_info->isFile())
		{
			//load the clas into momeory
			include $file_info->getPathname();

			$class_name = substr($file_info->getFilename(), 0,-4);

			//get the database table class
			$table_object = new $class_name();

			//get the table columns, create SQL and execute
			$this->getColumns($table_object)->updateSQL()->executeUpdate();

			//echo "{$this->query_string}";exit(0);

		}

		//this file has not been created yet
		else
		{


		}

	}
public function updateTable ( ) { //get the instance of the FileInfo class $ file_info = FileInfo :: Create ( $ this -> table_file_path ) ; //this file already exists if ( $ file_info -> isFile ( ) ) { //load the clas into momeory include $ file_info -> getPathname ( ) ; $ class_name = substr ( $ file_info -> getFilename ( ) , 0 , - 4 ) ; //get the database table class $ table_object = new $ class_name ( ) ; //get the table columns, create SQL and execute $ this -> getColumns ( $ table_object ) -> updateSQL ( ) -> executeUpdate ( ) ; //echo "{$this->query_string}";exit(0); } //this file has not been created yet else { } }
This model updates a table structure in the database.
@param null
@return bool true if update structure success
This model updates a table structure in the database .