/var/www/vhosts/ihelp.ro/_OLD/vendor/robmorgan/phinx/src/Phinx/Db/Action
NameSizeModeActions
Action.php6790644editdlrm
AddColumn.php15400644editdlrm
AddForeignKey.php22700644editdlrm
AddIndex.php17560644editdlrm
ChangeColumn.php22270644editdlrm
ChangeComment.php8460644editdlrm
ChangePrimaryKey.php8940644editdlrm
CreateTable.php2020644editdlrm
DropForeignKey.php17560644editdlrm
DropIndex.php17790644editdlrm
DropTable.php2000644editdlrm
RemoveColumn.php13630644editdlrm
RenameColumn.php18120644editdlrm
RenameTable.php7980644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/robmorgan/phinx/src/Phinx/Db/Action/AddIndex.php (1756B)
index = $index; } /** * Creates a new AddIndex object after building the index object with the * provided arguments * * @param \Phinx\Db\Table\Table $table The table to add the index to * @param mixed $columns The columns to index * @param array $options Additional options for the index creation * * @return \Phinx\Db\Action\AddIndex */ public static function build(Table $table, $columns, array $options = []) { // create a new index object if strings or an array of strings were supplied $index = $columns; if (!$columns instanceof Index) { $index = new Index(); if (is_string($columns)) { $columns = [$columns]; // str to array } $index->setColumns($columns); $index->setOptions($options); } return new static($table, $index); } /** * Returns the index to be added * * @return \Phinx\Db\Table\Index */ public function getIndex() { return $this->index; } }