本文整理汇总了PHP中Schema::drop方法的典型用法代码示例。如果您正苦于以下问题:PHP Schema::drop方法的具体用法?PHP Schema::drop怎么用?PHP Schema::drop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Schema
的用法示例。
在下文中一共展示了Schema::drop方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('category_permission');
Schema::drop('category_permission_role');
Schema::drop('category_permission_permission');
Schema::drop('category_permission_category');
}
示例2: down
public function down()
{
Schema::table('posts', function (Blueprint $table) {
$table->dropForeign('posts_user_id_foreign');
});
Schema::drop('posts');
}
示例3: down
public function down()
{
$prefix = config('larablog.table.prefix');
Schema::drop($prefix . '_post_tag');
Schema::drop($prefix . '_posts');
Schema::drop($prefix . '_tags');
}
示例4: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('professions');
Schema::table('profiles', function (Blueprint $table) {
$table->dropColumn('profession_id');
});
}
示例5: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table("sprites", function ($table) {
$table->dropIndex("search");
});
Schema::drop("sprites");
}
示例6: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table($this->authenticationProvidersTable, function (Blueprint $table) {
$table->dropForeign('oauth_identities_user_id_foreign');
});
Schema::drop($this->authenticationProvidersTable);
}
示例7: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('uploaded_files');
Schema::table('products', function ($table) {
$table->string('image_file');
});
}
示例8: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
/* Drop table 'users' from database specified in .env-file
* (or config/database.php).
*/
Schema::drop('users');
}
示例9: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users_oauth', function (Blueprint $table) {
$table->dropForeign('users_oauth_user_id_foreign');
});
Schema::drop('users_oauth');
}
示例10: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('uploads');
Schema::table('users', function ($table) {
$table->dropColumn('image');
});
}
示例11: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
if (env('APP_ENV') !== 'spira-core-testing') {
return true;
}
Schema::drop(SecondTestEntity::getTableName());
}
示例12: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop(Models::table('permissions'));
Schema::drop(Models::table('assigned_roles'));
Schema::drop(Models::table('roles'));
Schema::drop(Models::table('abilities'));
}
示例13: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function ($table) {
//-- Custom Column Name
Schema::drop('users');
});
}
开发者ID:jm-comentum,项目名称:kendo-laravel-hybrid-app-starter-kit,代码行数:12,代码来源:2014_04_18_041612_alter_users_table.php
示例14: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
// drop table for back to revision
if (Schema::hasTable('user_info')) {
Schema::drop('user_info');
}
}
示例15: down
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('permission_role');
Schema::drop('permissions');
Schema::drop('role_user');
Schema::drop('roles');
}