public function getDropFK(TableSchema $table, $indent = 0)
    {
        if (empty($table->foreignKeys)) {
            return '';
        }

        $textIndent = $this->textIndent($indent);
        $tableName = static::removePrefix($table->name, $this->db->tablePrefix);

        $definition = <<<DEFINITION
{$textIndent}foreach (\$this->runSuccess as \$keyName => \$value) {
{$textIndent}    \$this->dropForeignKey(\$keyName, '{{%$tableName}}');
{$textIndent}}
DEFINITION;

        return $definition . self::ENTER;

    }
public function getDropFK(TableSchema $table, $indent = 0)
    {
        if (empty($table->foreignKeys)) {
            return '';
        }

        $textIndent = $this->textIndent($indent);
        $tableName = static::removePrefix($table->name, $this->db->tablePrefix);

        $definition = <<<DEFINITION
{$textIndent}foreach (\$this->runSuccess as \$keyName => \$value) {
{$textIndent}    \$this->dropForeignKey(\$keyName, '{{%$tableName}}');
{$textIndent}}
DEFINITION;

        return $definition . self::ENTER;

    }
public function getDropFK ( TableSchema $ table , $ indent = 0 ) { if ( empty ( $ table -> foreignKeys ) ) { return '' ; } $ textIndent = $ this -> textIndent ( $ indent ) ; $ tableName = static :: removePrefix ( $ table -> name , $ this -> db -> tablePrefix ) ; $ definition =  <<<DEFINITION
{$textIndent}foreach (\$this->runSuccess as \$keyName => \$value) {
{$textIndent}    \$this->dropForeignKey(\$keyName, '{{%$tableName}}');
{$textIndent}}
DEFINITION ; return $ definition . self :: ENTER ; }
drop foreign key
@param TableSchema $table
@param $indent int text-indent 文本缩进
@return string
drop foreign key