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
91a6532d
Commit
91a6532d
authored
Sep 18, 2010
by
Juozas Kaziukenas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added databases list support
parent
0c9fe1d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
MsSqlPlatform.php
lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
+9
-0
MsSqlSchemaManager.php
lib/Doctrine/DBAL/Schema/MsSqlSchemaManager.php
+8
-0
No files found.
lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
View file @
91a6532d
...
@@ -92,6 +92,10 @@ class MsSqlPlatform extends AbstractPlatform
...
@@ -92,6 +92,10 @@ class MsSqlPlatform extends AbstractPlatform
*/
*/
public
function
getDropDatabaseSQL
(
$name
)
public
function
getDropDatabaseSQL
(
$name
)
{
{
return
'ALTER DATABASE ['
.
$name
.
']
SET SINGLE_USER --or RESTRICTED_USER
WITH ROLLBACK IMMEDIATE;
DROP DATABASE '
.
$name
.
';'
;
return
'DROP DATABASE '
.
$name
;
return
'DROP DATABASE '
.
$name
;
}
}
...
@@ -293,6 +297,11 @@ class MsSqlPlatform extends AbstractPlatform
...
@@ -293,6 +297,11 @@ class MsSqlPlatform extends AbstractPlatform
$args
=
func_get_args
();
$args
=
func_get_args
();
return
'('
.
implode
(
' + '
,
$args
)
.
')'
;
return
'('
.
implode
(
' + '
,
$args
)
.
')'
;
}
}
public
function
getListDatabasesSQL
()
{
return
'SELECT * FROM SYS.DATABASES'
;
}
/**
/**
* @override
* @override
...
...
lib/Doctrine/DBAL/Schema/MsSqlSchemaManager.php
View file @
91a6532d
...
@@ -230,4 +230,12 @@ class MsSqlSchemaManager extends AbstractSchemaManager
...
@@ -230,4 +230,12 @@ class MsSqlSchemaManager extends AbstractSchemaManager
{
{
return
$table
[
'name'
];
return
$table
[
'name'
];
}
}
/**
* @override
*/
protected
function
_getPortableDatabaseDefinition
(
$database
)
{
return
$database
[
'name'
];
}
}
}
\ 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