예제 #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);
 }