PHP Classes

File: src/SQLTools/Command/DropForeignKey.php

Recommend this page to a friend!
  Classes of Rafael Lúcio   SQLTools   src/SQLTools/Command/DropForeignKey.php   Download  
File: src/SQLTools/Command/DropForeignKey.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: SQLTools
Create and alter databases, tables and indexes
Author: By
Last change: Update of src/SQLTools/Command/DropForeignKey.php
Date: 11 months ago
Size: 374 bytes
 

Contents

Class file image Download
<?php

namespace SQLTools\Command;


use
SQLTools\Base\AlterTableEnum;

class
DropForeignKey extends AlterTable {

    protected
$changeType = AlterTableEnum::DROP;
    private
$fkName;

    public function
__construct($fkName)
    {
       
$this->fkName = $fkName;
    }

    protected function
getWhatToAdd()
    {
        return
"FOREIGN KEY {$this->fkName};";
    }

}