Пример #1
0
 /**
  * Rename a translations table.
  *
  * @param StreamInterface $from
  * @param StreamInterface $to
  */
 public function renameTranslationsTable(StreamInterface $from, StreamInterface $to)
 {
     if ($from->getEntryTranslationsTableName() === $to->getEntryTranslationsTableName()) {
         return;
     }
     $this->schema->rename($from->getEntryTranslationsTableName(), $to->getEntryTranslationsTableName());
 }
Пример #2
0
 /**
  * Rename a table on the schema.
  *
  * @param string $from
  * @param string $to
  * @return \Illuminate\Database\Schema\Blueprint 
  * @static 
  */
 public static function rename($from, $to)
 {
     return \Illuminate\Database\Schema\Builder::rename($from, $to);
 }
Пример #3
0
 /**
  * Rename a table on the schema.
  *
  * @param  string $from
  * @param  string $to
  *
  * @return \Illuminate\Database\Schema\Blueprint
  */
 public function rename($from, $to)
 {
     return static::$schema->rename($from, $to);
 }