Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
ad35640d
Commit
ad35640d
authored
Sep 18, 2010
by
Juozas Kaziukenas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for add, delete and list views
parent
fd976290
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
MsSqlPlatform.php
lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
+24
-0
MsSqlSchemaManager.php
lib/Doctrine/DBAL/Schema/MsSqlSchemaManager.php
+9
-0
No files found.
lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
View file @
ad35640d
...
...
@@ -227,6 +227,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.
*
...
...
lib/Doctrine/DBAL/Schema/MsSqlSchemaManager.php
View file @
ad35640d
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment