Page MenuHomeDevCentral

Update MySQL users table in migration
Closed, ResolvedPublic

Description

The current MySQL schema isn't the one currently defined in 2014_10_12_000000_create_users_table.

I remember we have chosen to wait what our needs are before to publish a release candidate schema. It seems now would be the good time to commit it.

$ php artisan migrate
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes

Migration table created successfully.
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table

$ php artisan account:dump

                                                                                                                                                              
  [Illuminate\Database\QueryException]                                                                                                                        
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'fullname' in 'field list' (SQL: select `id`, `username`, `fullname`, `email`, `created_at`, `updat  
  ed_at` from `users`)                                                                                                                                        
                                                                                                                                                              

                                                                                     
  [PDOException]                                                                     
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'fullname' in 'field list'  
                                                                                     

Revisions and Commits