mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
Update for framework namespacing
This commit is contained in:
parent
7d23f2c97d
commit
fc915b856a
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\Dev\Install\DatabaseAdapterRegistry;
|
||||
|
||||
// PDO Postgre database
|
||||
DatabaseAdapterRegistry::register(array(
|
||||
/** @skipUpgrade */
|
||||
|
@ -2,15 +2,15 @@
|
||||
|
||||
namespace SilverStripe\PostgreSQL;
|
||||
|
||||
use Injector;
|
||||
use SilverStripe\Framework\Core\Configurable;
|
||||
use SilverStripe\Core\Config\Configurable;
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
use SilverStripe\ORM\DB;
|
||||
use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\ArrayList;
|
||||
use SilverStripe\ORM\Connect\SS_Database;
|
||||
use SilverStripe\ORM\PaginatedList;
|
||||
use ErrorException;
|
||||
use Exception;
|
||||
use PaginatedList;
|
||||
|
||||
/**
|
||||
* PostgreSQL connector class.
|
||||
@ -396,7 +396,7 @@ class PostgreSQLDatabase extends SS_Database
|
||||
|
||||
// Make column selection lists
|
||||
$pageClass = 'SilverStripe\\CMS\\Model\\SiteTree';
|
||||
$fileClass = 'File';
|
||||
$fileClass = 'SilverStripe\\Assets\\File';
|
||||
$select = array(
|
||||
$pageClass => array(
|
||||
'"ClassName"',
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
namespace SilverStripe\PostgreSQL;
|
||||
|
||||
use DatabaseConfigurationHelper;
|
||||
use PDO;
|
||||
use SilverStripe\Dev\Install\DatabaseAdapterRegistry;
|
||||
use SilverStripe\Dev\Install\DatabaseConfigurationHelper;
|
||||
use Exception;
|
||||
use DatabaseAdapterRegistry;
|
||||
use PDO;
|
||||
|
||||
/**
|
||||
* This is a helper class for the SS installer.
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
namespace SilverStripe\PostgreSQL;
|
||||
|
||||
use SilverStripe\Dev\Deprecation;
|
||||
use SilverStripe\ORM\Connect\DBSchemaManager;
|
||||
use SilverStripe\ORM\DB;
|
||||
use Deprecation;
|
||||
|
||||
/**
|
||||
* PostgreSQL schema manager
|
||||
|
@ -1,12 +1,8 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\Dev\SapphireTest;
|
||||
use SilverStripe\PostgreSQL\PostgreSQLConnector;
|
||||
|
||||
/**
|
||||
* Description of PostgreSQLConnectorTest
|
||||
*
|
||||
* @author Damian
|
||||
*/
|
||||
class PostgreSQLConnectorTest extends SapphireTest
|
||||
{
|
||||
public function testSubstitutesPlaceholders()
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
use SilverStripe\ORM\DB;
|
||||
use SilverStripe\Dev\SapphireTest;
|
||||
use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\DB;
|
||||
use SilverStripe\PostgreSQL\PostgreSQLDatabase;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user