本文整理汇总了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);
}