Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
PSDI Army
yii2
Commits
d07fd39f
Commit
d07fd39f
authored
Jun 07, 2013
by
gevik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed false exception catching.
parent
879b494a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
Schema.php
framework/yii/db/pgsql/Schema.php
+3
-8
No files found.
framework/yii/db/pgsql/Schema.php
View file @
d07fd39f
...
@@ -97,7 +97,7 @@ class Schema extends \yii\db\Schema
...
@@ -97,7 +97,7 @@ class Schema extends \yii\db\Schema
$table
->
schemaName
=
$this
->
defaultSchema
;
$table
->
schemaName
=
$this
->
defaultSchema
;
}
}
}
}
/**
/**
* Quotes a table name for use in a query.
* Quotes a table name for use in a query.
* A simple table name has no schema prefix.
* A simple table name has no schema prefix.
...
@@ -121,7 +121,7 @@ class Schema extends \yii\db\Schema
...
@@ -121,7 +121,7 @@ class Schema extends \yii\db\Schema
return
$table
;
return
$table
;
}
}
}
}
/**
/**
* Collects the foreign key column details for the given table.
* Collects the foreign key column details for the given table.
* @param TableSchema $table the table metadata
* @param TableSchema $table the table metadata
...
@@ -158,11 +158,7 @@ where
...
@@ -158,11 +158,7 @@ where
and ns.nspname={$tableSchema}
and ns.nspname={$tableSchema}
SQL;
SQL;
try
{
$constraints
=
$this
->
db
->
createCommand
(
$sql
)
->
queryAll
();
$constraints
=
$this
->
db
->
createCommand
(
$sql
)
->
queryAll
();
}
catch
(
\Exception
$e
)
{
return
false
;
}
foreach
(
$constraints
as
$constraint
)
{
foreach
(
$constraints
as
$constraint
)
{
$columns
=
explode
(
','
,
$constraint
[
'columns'
]);
$columns
=
explode
(
','
,
$constraint
[
'columns'
]);
$fcolumns
=
explode
(
','
,
$constraint
[
'foreign_columns'
]);
$fcolumns
=
explode
(
','
,
$constraint
[
'foreign_columns'
]);
...
@@ -172,7 +168,6 @@ SQL;
...
@@ -172,7 +168,6 @@ SQL;
}
}
$table
->
foreignKeys
[]
=
$citem
;
$table
->
foreignKeys
[]
=
$citem
;
}
}
return
true
;
}
}
/**
/**
...
...
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