@@ -351,6 +357,9 @@ class SqlitePlatform extends AbstractPlatform
return"PRAGMA index_list($table)";
}
/**
* {@inheritDoc}
*/
publicfunctiongetListTablesSQL()
{
return"SELECT name FROM sqlite_master WHERE type = 'table' AND name != 'sqlite_sequence' AND name != 'geometry_columns' AND name != 'spatial_ref_sys' "
...
...
@@ -366,11 +375,17 @@ class SqlitePlatform extends AbstractPlatform
return"SELECT name, sql FROM sqlite_master WHERE type='view' AND sql NOT NULL";
}
/**
* {@inheritDoc}
*/
publicfunctiongetCreateViewSQL($name,$sql)
{
return'CREATE VIEW '.$name.' AS '.$sql;
}
/**
* {@inheritDoc}
*/
publicfunctiongetDropViewSQL($name)
{
return'DROP VIEW '.$name;
...
...
@@ -383,21 +398,15 @@ class SqlitePlatform extends AbstractPlatform