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
f67ddb17
Commit
f67ddb17
authored
Nov 19, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1242: Gii Model generation added dropped table fields in Postgresql
parent
d2e5f2c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Schema.php
framework/yii/db/pgsql/Schema.php
+1
-2
No files found.
framework/yii/db/pgsql/Schema.php
View file @
f67ddb17
...
@@ -242,7 +242,6 @@ SQL;
...
@@ -242,7 +242,6 @@ SQL;
$schemaName
=
$this
->
db
->
quoteValue
(
$table
->
schemaName
);
$schemaName
=
$this
->
db
->
quoteValue
(
$table
->
schemaName
);
$sql
=
<<<SQL
$sql
=
<<<SQL
SELECT
SELECT
current_database() as table_catalog,
d.nspname AS table_schema,
d.nspname AS table_schema,
c.relname AS table_name,
c.relname AS table_name,
a.attname AS column_name,
a.attname AS column_name,
...
@@ -289,7 +288,7 @@ FROM
...
@@ -289,7 +288,7 @@ FROM
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
WHERE
a.attnum > 0
a.attnum > 0
and t.typename != ''
and c.relname = {$tableName}
and c.relname = {$tableName}
and d.nspname = {$schemaName}
and d.nspname = {$schemaName}
ORDER BY
ORDER BY
...
...
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