本文整理匯總了PHP中Illuminate\Database\Schema\Builder::drop方法的典型用法代碼示例。如果您正苦於以下問題:PHP Builder::drop方法的具體用法?PHP Builder::drop怎麽用?PHP Builder::drop使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Database\Schema\Builder
的用法示例。
在下文中一共展示了Builder::drop方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dropInstance
/**
* 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: drop
/**
* 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);
}
示例3: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$this->schema->drop('extras');
}
示例4: down
/**
* Reverse the migrations.
*/
public function down()
{
$this->schema->drop('password_resets');
}
示例5: drop
/**
* 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);
}
示例6: rollbackTestMigrations
/**
* Rollback migrations for tables only used for testing purposes.
*
* @return void
*/
protected function rollbackTestMigrations()
{
(new \CreateAdjustmentsTable())->down();
$this->schema->drop('fruits');
}
示例7: tearDown
public function tearDown()
{
$this->schemaBuilder->drop($this->tableName);
}
示例8: rollbackTestMigrations
/**
* Rollback migrations for tables only used for testing purposes.
*
* @return void
*/
protected function rollbackTestMigrations()
{
$this->schema->drop('fruits');
}
示例9: down
public function down()
{
$this->schema->drop($this->table);
}
示例10: drop
/**
* 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);
}