Вход Регистрация
Файл: vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SQLAzurePlatform.php
Строк: 30
<?php

namespace DoctrineDBALPlatforms;

use 
DoctrineDBALSchemaTable;

/**
 * Platform to ensure compatibility of Doctrine with SQL Azure
 *
 * On top of SQL Server 2008 the following functionality is added:
 *
 * - Create tables with the FEDERATED ON syntax.
 *
 * @deprecated
 */
class SQLAzurePlatform extends SQLServer2008Platform
{
    
/**
     * {@inheritDoc}
     */
    
public function getCreateTableSQL(Table $table$createFlags self::CREATE_INDEXES)
    {
        
$sql parent::getCreateTableSQL($table$createFlags);

        if (
$table->hasOption('azure.federatedOnColumnName')) {
            
$distributionName $table->getOption('azure.federatedOnDistributionName');
            
$columnName       $table->getOption('azure.federatedOnColumnName');
            
$stmt             ' FEDERATED ON (' $distributionName ' = ' $columnName ')';

            
$sql[0] .= $stmt;
        }

        return 
$sql;
    }
}
Онлайн: 0
Реклама