protected function getChangeSequenceSQL(\SimpleXMLElement $field)
	{
		/* For older database version that doesn't support these fields use default values */
		if (version_compare($this->db->getVersion(), '9.1.0') < 0)
		{
			$field['Min_Value'] = '1';
			$field['Max_Value'] = '9223372036854775807';
			$field['Increment'] = '1';
			$field['Cycle_option'] = 'NO';
			$field['Start_Value'] = '1';
		}

		$sql = 'ALTER SEQUENCE ' . (string) $field['Name']
			. ' INCREMENT BY ' . (string) $field['Increment'] . ' MINVALUE ' . (string) $field['Min_Value']
			. ' MAXVALUE ' . (string) $field['Max_Value'] . ' START ' . (string) $field['Start_Value']
			. ' OWNED BY ' . $this->db->quoteName((string) $field['Schema'] . '.' . (string) $field['Table'] . '.' . (string) $field['Column']);

		return $sql;
	}
protected function getChangeSequenceSQL(\SimpleXMLElement $field)
	{
		/* For older database version that doesn't support these fields use default values */
		if (version_compare($this->db->getVersion(), '9.1.0') < 0)
		{
			$field['Min_Value'] = '1';
			$field['Max_Value'] = '9223372036854775807';
			$field['Increment'] = '1';
			$field['Cycle_option'] = 'NO';
			$field['Start_Value'] = '1';
		}

		$sql = 'ALTER SEQUENCE ' . (string) $field['Name']
			. ' INCREMENT BY ' . (string) $field['Increment'] . ' MINVALUE ' . (string) $field['Min_Value']
			. ' MAXVALUE ' . (string) $field['Max_Value'] . ' START ' . (string) $field['Start_Value']
			. ' OWNED BY ' . $this->db->quoteName((string) $field['Schema'] . '.' . (string) $field['Table'] . '.' . (string) $field['Column']);

		return $sql;
	}
protected function getChangeSequenceSQL ( \ SimpleXMLElement $ field ) { /* For older database version that doesn't support these fields use default values */ if ( version_compare ( $ this -> db -> getVersion ( ) , '9.1.0' ) < 0 ) { $ field [ 'Min_Value' ] = '1' ; $ field [ 'Max_Value' ] = '9223372036854775807' ; $ field [ 'Increment' ] = '1' ; $ field [ 'Cycle_option' ] = 'NO' ; $ field [ 'Start_Value' ] = '1' ; } $ sql = 'ALTER SEQUENCE ' . ( string ) $ field [ 'Name' ] . ' INCREMENT BY ' . ( string ) $ field [ 'Increment' ] . ' MINVALUE ' . ( string ) $ field [ 'Min_Value' ] . ' MAXVALUE ' . ( string ) $ field [ 'Max_Value' ] . ' START ' . ( string ) $ field [ 'Start_Value' ] . ' OWNED BY ' . $ this -> db -> quoteName ( ( string ) $ field [ 'Schema' ] . '.' . ( string ) $ field [ 'Table' ] . '.' . ( string ) $ field [ 'Column' ] ) ; return $ sql ; }
Get the syntax to alter a sequence.

@param   \SimpleXMLElement  $field  The XML definition for the sequence.

@return  string

@since   1.0
Get the syntax to alter a sequence .