@@ -141,9 +124,7 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -141,9 +124,7 @@ class PostgreSqlPlatform extends AbstractPlatform
}
}
/**
/**
* Whether the platform supports database schemas.
* {@inheritDoc}
*
* @return boolean
*/
*/
publicfunctionsupportsSchemas()
publicfunctionsupportsSchemas()
{
{
...
@@ -151,25 +132,23 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -151,25 +132,23 @@ class PostgreSqlPlatform extends AbstractPlatform
}
}
/**
/**
* Whether the platform supports identity columns.
* {@inheritDoc}
* Postgres supports these through the SERIAL keyword.
*
* @return boolean
*/
*/
publicfunctionsupportsIdentityColumns()
publicfunctionsupportsIdentityColumns()
{
{
returntrue;
returntrue;
}
}
/**
* {@inheritDoc}
*/
publicfunctionsupportsCommentOnStatement()
publicfunctionsupportsCommentOnStatement()
{
{
returntrue;
returntrue;
}
}
/**
/**
* Whether the platform prefers sequences for ID generation.
* {@inheritDoc}
*
* @return boolean
*/
*/
publicfunctionprefersSequences()
publicfunctionprefersSequences()
{
{
...
@@ -197,6 +176,9 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -197,6 +176,9 @@ class PostgreSqlPlatform extends AbstractPlatform
FROM pg_tables WHERE schemaname NOT LIKE 'pg_%' AND schemaname != 'information_schema' AND tablename != 'geometry_columns' AND tablename != 'spatial_ref_sys'";
FROM pg_tables WHERE schemaname NOT LIKE 'pg_%' AND schemaname != 'information_schema' AND tablename != 'geometry_columns' AND tablename != 'spatial_ref_sys'";
}
}
/**
* {@inheritDoc}
*/
publicfunctiongetListViewsSQL($database)
publicfunctiongetListViewsSQL($database)
{
{
return'SELECT viewname, definition FROM pg_views';
return'SELECT viewname, definition FROM pg_views';
...
@@ -241,10 +223,10 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -241,10 +223,10 @@ class PostgreSqlPlatform extends AbstractPlatform