Commit ad35640d authored by Juozas Kaziukenas's avatar Juozas Kaziukenas

Added support for add, delete and list views

parent fd976290
......@@ -226,6 +226,30 @@ DROP DATABASE ' . $name . ';';
{
return "exec sp_helpindex '" . $table . "'";
}
/**
* @override
*/
public function getCreateViewSQL($name, $sql)
{
return 'CREATE VIEW ' . $name . ' AS ' . $sql;
}
/**
* @override
*/
public function getListViewsSQL($database)
{
return "SELECT name FROM sysobjects WHERE type = 'V' ORDER BY name";
}
/**
* @override
*/
public function getDropViewSQL($name)
{
return 'DROP VIEW '. $name;
}
/**
* Returns the regular expression operator.
......
......@@ -230,4 +230,13 @@ class MsSqlSchemaManager extends AbstractSchemaManager
{
return $database['name'];
}
/**
* @override
*/
protected function _getPortableViewDefinition($view)
{
// @todo
return new View($view['name'], null);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment