PHP Method Schema::drop, someline-starter Code Examples

This page contains top rated real world PHP examples of method Schema::drop from package someline-starter extracted from open source projects. You can rate examples to help us improve the quality of examples

drop() public static method

Drop a table from the schema.
public static drop ( string $table ) : Illuminate\Database\Schema\Blueprint
$table string
return Illuminate\Database\Schema\Blueprint
Example #1
Show file File: 0000_00_00_000000_create_larablog_blog_table.php Project: websanova/larablog
0
 public function down()
 {
     $prefix = config('larablog.table.prefix');
     Schema::drop($prefix . '_post_tag');
     Schema::drop($prefix . '_posts');
     Schema::drop($prefix . '_tags');
 }
Example #2
Show file File: 2015_11_20_104110_create_junction_tables.php Project: jehaby/velpar
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('user_pattern');
     Schema::drop('pattern_section');
     Schema::drop('pattern_prefix');
     Schema::drop('pattern_theme');
 }
Example #3
Show file File: 2015_06_04_152043_create_posts_table.php Project: py1903/My-Blog-Creator
0
 public function down()
 {
     Schema::table('posts', function (Blueprint $table) {
         $table->dropForeign('posts_user_id_foreign');
     });
     Schema::drop('posts');
 }
Example #4
Show file File: 2015_11_04_153919_create_sprites_table.php Project: jaflo/sprites
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table("sprites", function ($table) {
         $table->dropIndex("search");
     });
     Schema::drop("sprites");
 }
Example #5
Show file File: 2015_05_27_022945_add_professions.php Project: katzumi/talent4startups
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('professions');
     Schema::table('profiles', function (Blueprint $table) {
         $table->dropColumn('profession_id');
     });
 }
Example #6
Show file File: 2016_04_18_181328_oauth_identities_table.php Project: alvaradoadam15/laraveltube
0
 /**
  * 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);
 }
Example #7
Show file File: 2015_01_08_214849_crear_tablas_reintegros_honorarios.php Project: armandolazarte/gia
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('honorarios');
     Schema::drop('reintegro_vale');
     Schema::drop('reintegro_rm');
     Schema::drop('reintegros');
 }
Example #8
Show file File: 2015_08_03_002737_patch.php Project: ramirezd42/patchbay-api
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('votes');
     Schema::drop('downloads');
     Schema::drop('patches');
     Schema::drop('samples');
 }
Example #9
Show file File: 2013_08_20_122512_entrust_setup_tables.php Project: ehumps/rendezview
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('assigned_roles');
     Schema::drop('permission_role');
     Schema::drop('roles');
     Schema::drop('permissions');
 }
Example #10
Show file File: 2014_10_12_000000_create_users_table.php Project: Samuli-S/CT30A3201_WWW_sovellukset
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     /* Drop table 'users' from database specified in .env-file 
      * (or config/database.php).
      */
     Schema::drop('users');
 }
Example #11
Show file File: 2015_10_30_172141_CreateTableForUploadedFiles.php Project: poudigne/lcdj
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('uploaded_files');
     Schema::table('products', function ($table) {
         $table->string('image_file');
     });
 }
Example #12
Show file File: 2015_05_13_125906_create_users_oauth_table.php Project: audithsoftworks/basis
0
 /**
  * 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');
 }
Example #13
Show file File: 2014_12_18_011936_uploads_create_table.php Project: FebriPratama/pop
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('uploads');
     Schema::table('users', function ($table) {
         $table->dropColumn('image');
     });
 }
Example #14
Show file File: 2016_03_20_191642_create_login_tokens.php Project: yeyande/CS499
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('Tokens');
     Schema::table('Users', function ($table) {
         $table->dropColumn('token_id');
     });
 }
Example #15
Show file File: 2015_07_13_060433_test_many_many_second_table.php Project: spira/api-core
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     if (env('APP_ENV') !== 'spira-core-testing') {
         return true;
     }
     Schema::drop(SecondTestEntity::getTableName());
 }
Example #16
Show file File: 2015_05_26_221456_create_bouncer_tables.php Project: BibleBowl/account
0
 /**
  * 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'));
 }
Example #17
Show file File: 2016_03_16_190241_activities.php Project: saproto/saproto
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('events');
     Schema::drop('activities');
     Schema::drop('committees_events');
     Schema::drop('activities_users');
 }
Example #18
Show file File: 2016_04_13_151007_create_shop_cards_table.php Project: whplay/ohmate-shop
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('shop_cards', function (Blueprint $table) {
         $table->dropForeign('shop_cards_customer_id_foreign');
     });
     Schema::drop('shop_cards');
 }
Example #19
Show file File: 2014_04_18_041612_alter_users_table.php Project: jm-comentum/kendo-laravel-hybrid-app-starter-kit
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('users', function ($table) {
         //-- Custom Column Name
         Schema::drop('users');
     });
 }
Example #20
Show file File: 2016_04_11_022111_create-user-info.php Project: sagaekakristi/ppla02
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     // drop table for back to revision
     if (Schema::hasTable('user_info')) {
         Schema::drop('user_info');
     }
 }
Example #21
Show file File: 2016_04_25_161720_create_courses_table.php Project: alfrcr/ilearn
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('module_user');
     Schema::drop('modules');
     Schema::drop('classroom_course');
     Schema::drop('courses');
 }
Example #22
Show file File: 2016_06_16_170927_create_history_events_table.php Project: stcoder/uf-vova
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('history_events', function (Blueprint $table) {
         $table->dropForeign('history_events_history_date_id_foreign');
     });
     Schema::drop('history_events');
 }
Example #23
Show file File: 2016_08_06_182122_entrust_setup_tables.php Project: davila7/kayra
0
 /**
  * Reverse the migrations.
  *
  * @return  void
  */
 public function down()
 {
     Schema::drop('permission_role');
     Schema::drop('permissions');
     Schema::drop('role_user');
     Schema::drop('roles');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('tbl_quest', function ($table) {
         $table->dropForeign(['cat_intId']);
     });
     Schema::drop('tbl_quest');
 }
Example #25
Show file File: 2015_11_22_044248_add_specimen.php Project: HackTheDinos/team-squiz-bone-explorer
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('specimens');
     Schema::drop('images');
     Schema::drop('scans');
     Schema::drop('media');
 }
Example #26
Show file File: 2016_01_21_104228_create_articles_table.php Project: whplay/ohmate-shop
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('articles', function (Blueprint $table) {
         $table->dropForeign('articles_type_id_foreign');
     });
     Schema::drop('articles');
 }
Example #27
Show file File: 2015_12_21_150607_add_field_contract_type_to_bids.php Project: imsgithub/hotlot.com
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('bids', function (Blueprint $table) {
         $table->dropForeign('bids_contract_type_id_foreign');
     });
     Schema::drop('contract_type');
 }
Example #28
Show file File: 2013_08_08_000628_create_roles_permissions_tables.php Project: nicsmyrn/library
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     //
     Schema::drop('permissions_roles');
     Schema::drop('permissions');
     Schema::drop('roles');
 }
Example #29
Show file File: 2015_04_22_171236_create_forum_permissions_table.php Project: fetch404/fetch404
0
 /**
  * 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');
 }
Example #30
Show file File: 2015_10_13_062057_create_nerds_table.php Project: Navoda91/laravel4
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('nerds', function (Blueprint $table) {
         //
         Schema::drop('nerds');
     });
 }