/**
  * instance 내 모든 데이터 삭제
  *
  * @param string $instanceId instance identifier
  * @return void
  */
 public function dropInstance($instanceId)
 {
     if ($this->isEnable($instanceId) === true) {
         if ($this->schema->hasTable($this->getTable($instanceId)) === true) {
             $this->schema->drop($this->getTable($instanceId));
         }
     }
     $this->repo->dropInstance($instanceId);
 }
예제 #2
0
 /**
  * Drop a table from the schema.
  *
  * @param string $table
  * @return \Illuminate\Database\Schema\Blueprint 
  * @static 
  */
 public static function drop($table)
 {
     return \Illuminate\Database\Schema\Builder::drop($table);
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     $this->schema->drop('extras');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     $this->schema->drop('ages');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     $this->schema->drop('user_roles');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     $this->schema->drop('products');
 }
 /**
  * Reverse the migrations.
  */
 public function down()
 {
     $this->schema->drop('password_resets');
 }
예제 #8
0
 /**
  * Drop a table from the schema.
  *
  * @param  string $table
  *
  * @return \Illuminate\Database\Schema\Blueprint
  */
 public static function drop($table)
 {
     static::$instance = static::$instance ?: new static();
     return static::$schema->drop($table);
 }
예제 #9
0
 /**
  * Rollback migrations for tables only used for testing purposes.
  *
  * @return void
  */
 protected function rollbackTestMigrations()
 {
     (new \CreateAdjustmentsTable())->down();
     $this->schema->drop('fruits');
 }
 public function tearDown()
 {
     $this->schemaBuilder->drop($this->tableName);
 }
예제 #11
0
 /**
  * Rollback migrations for tables only used for testing purposes.
  *
  * @return void
  */
 protected function rollbackTestMigrations()
 {
     $this->schema->drop('fruits');
 }
예제 #12
0
파일: Migration.php 프로젝트: fluxbb/core
 public function down()
 {
     $this->schema->drop($this->table);
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     $this->schema->drop('help');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     $this->schema->drop('countries');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     $this->schema->drop('profiles');
 }
 /**
  * Drop a table from the schema.
  *
  * @param  string $table
  * @return \Illuminate\Database\Schema\Blueprint
  */
 public function drop($table)
 {
     $this->helper->dropAutoIncrementObjects($table);
     parent::drop($table);
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     $this->schema->drop('notifications');
 }