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
15bec73c
Unverified
Commit
15bec73c
authored
Jul 09, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing exception annotation to schema managers
parent
93e61511
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
105 additions
and
8 deletions
+105
-8
AbstractSchemaManager.php
src/Schema/AbstractSchemaManager.php
+82
-3
DB2SchemaManager.php
src/Schema/DB2SchemaManager.php
+3
-0
OracleSchemaManager.php
src/Schema/OracleSchemaManager.php
+4
-0
PostgreSqlSchemaManager.php
src/Schema/PostgreSqlSchemaManager.php
+4
-5
SQLServerSchemaManager.php
src/Schema/SQLServerSchemaManager.php
+4
-0
SqliteSchemaManager.php
src/Schema/SqliteSchemaManager.php
+5
-0
AbstractSchemaSynchronizer.php
src/Schema/Synchronizer/AbstractSchemaSynchronizer.php
+3
-0
No files found.
src/Schema/AbstractSchemaManager.php
View file @
15bec73c
This diff is collapsed.
Click to expand it.
src/Schema/DB2SchemaManager.php
View file @
15bec73c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
Doctrine\DBAL\Schema
;
namespace
Doctrine\DBAL\Schema
;
use
Doctrine\DBAL\DBALException
;
use
Doctrine\DBAL\Platforms\DB2Platform
;
use
Doctrine\DBAL\Platforms\DB2Platform
;
use
Doctrine\DBAL\Types\Type
;
use
Doctrine\DBAL\Types\Type
;
...
@@ -37,6 +38,8 @@ class DB2SchemaManager extends AbstractSchemaManager
...
@@ -37,6 +38,8 @@ class DB2SchemaManager extends AbstractSchemaManager
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*
* @throws DBALException
*/
*/
protected
function
_getPortableTableColumnDefinition
(
$tableColumn
)
protected
function
_getPortableTableColumnDefinition
(
$tableColumn
)
{
{
...
...
src/Schema/OracleSchemaManager.php
View file @
15bec73c
...
@@ -297,6 +297,8 @@ class OracleSchemaManager extends AbstractSchemaManager
...
@@ -297,6 +297,8 @@ class OracleSchemaManager extends AbstractSchemaManager
* @param string $table
* @param string $table
*
*
* @return bool
* @return bool
*
* @throws DBALException
*/
*/
public
function
dropAutoincrement
(
$table
)
public
function
dropAutoincrement
(
$table
)
{
{
...
@@ -347,6 +349,8 @@ class OracleSchemaManager extends AbstractSchemaManager
...
@@ -347,6 +349,8 @@ class OracleSchemaManager extends AbstractSchemaManager
* @param string $user The name of the user to kill sessions for.
* @param string $user The name of the user to kill sessions for.
*
*
* @return void
* @return void
*
* @throws DBALException
*/
*/
private
function
killUserSessions
(
$user
)
private
function
killUserSessions
(
$user
)
{
{
...
...
src/Schema/PostgreSqlSchemaManager.php
View file @
15bec73c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
Doctrine\DBAL\Schema
;
namespace
Doctrine\DBAL\Schema
;
use
Doctrine\DBAL\DBALException
;
use
Doctrine\DBAL\Exception\DriverException
;
use
Doctrine\DBAL\Exception\DriverException
;
use
Doctrine\DBAL\Platforms\PostgreSQL94Platform
;
use
Doctrine\DBAL\Platforms\PostgreSQL94Platform
;
use
Doctrine\DBAL\Types\Type
;
use
Doctrine\DBAL\Types\Type
;
...
@@ -39,6 +40,8 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
...
@@ -39,6 +40,8 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
* Gets all the existing schema names.
* Gets all the existing schema names.
*
*
* @return string[]
* @return string[]
*
* @throws DBALException
*/
*/
public
function
getSchemaNames
()
public
function
getSchemaNames
()
{
{
...
@@ -46,11 +49,7 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
...
@@ -46,11 +49,7 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
}
}
/**
/**
* Returns an array of schema search paths.
* {@inheritDoc}
*
* This is a PostgreSQL only function.
*
* @return string[]
*/
*/
public
function
getSchemaSearchPaths
()
public
function
getSchemaSearchPaths
()
{
{
...
...
src/Schema/SQLServerSchemaManager.php
View file @
15bec73c
...
@@ -319,6 +319,8 @@ class SQLServerSchemaManager extends AbstractSchemaManager
...
@@ -319,6 +319,8 @@ class SQLServerSchemaManager extends AbstractSchemaManager
* @param string $database The name of the database to close currently active connections for.
* @param string $database The name of the database to close currently active connections for.
*
*
* @return void
* @return void
*
* @throws DBALException
*/
*/
private
function
closeActiveDatabaseConnections
(
$database
)
private
function
closeActiveDatabaseConnections
(
$database
)
{
{
...
@@ -334,6 +336,8 @@ class SQLServerSchemaManager extends AbstractSchemaManager
...
@@ -334,6 +336,8 @@ class SQLServerSchemaManager extends AbstractSchemaManager
/**
/**
* @param string $tableName
* @param string $tableName
*
* @throws DBALException
*/
*/
public
function
listTableDetails
(
$tableName
)
:
Table
public
function
listTableDetails
(
$tableName
)
:
Table
{
{
...
...
src/Schema/SqliteSchemaManager.php
View file @
15bec73c
...
@@ -501,6 +501,9 @@ CREATE\sTABLE # Match "CREATE TABLE"
...
@@ -501,6 +501,9 @@ CREATE\sTABLE # Match "CREATE TABLE"
return
$comment
===
''
?
null
:
$comment
;
return
$comment
===
''
?
null
:
$comment
;
}
}
/**
* @throws DBALException
*/
private
function
getCreateTableSQL
(
string
$table
)
:
string
private
function
getCreateTableSQL
(
string
$table
)
:
string
{
{
$sql
=
$this
->
_conn
->
fetchOne
(
$sql
=
$this
->
_conn
->
fetchOne
(
...
@@ -528,6 +531,8 @@ SQL
...
@@ -528,6 +531,8 @@ SQL
}
}
/**
/**
* {@inheritDoc}
*
* @param string $tableName
* @param string $tableName
*/
*/
public
function
listTableDetails
(
$tableName
)
:
Table
public
function
listTableDetails
(
$tableName
)
:
Table
...
...
src/Schema/Synchronizer/AbstractSchemaSynchronizer.php
View file @
15bec73c
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
namespace
Doctrine\DBAL\Schema\Synchronizer
;
namespace
Doctrine\DBAL\Schema\Synchronizer
;
use
Doctrine\DBAL\Connection
;
use
Doctrine\DBAL\Connection
;
use
Doctrine\DBAL\DBALException
;
use
Throwable
;
use
Throwable
;
/**
/**
...
@@ -37,6 +38,8 @@ abstract class AbstractSchemaSynchronizer implements SchemaSynchronizer
...
@@ -37,6 +38,8 @@ abstract class AbstractSchemaSynchronizer implements SchemaSynchronizer
* @param string[] $sql
* @param string[] $sql
*
*
* @return void
* @return void
*
* @throws DBALException
*/
*/
protected
function
processSql
(
array
$sql
)
protected
function
processSql
(
array
$sql
)
{
{
...
...
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