Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations fail #133

Open
kadimi opened this issue Aug 11, 2015 · 3 comments
Open

Migrations fail #133

kadimi opened this issue Aug 11, 2015 · 3 comments

Comments

@kadimi
Copy link

kadimi commented Aug 11, 2015

Hello,

I'm try to set up phphub, I installed dependencies with composer and prepared a Sqlite database, but the migrations fail, I believe something went wrong with this migration 014_08_10_091306_create_nodes_table.php

Here is the migration command output:

kadimi@bayn:~/workspace (master) $ yes | php artisan migrate
**************************************
*     Application In Production!     *
**************************************




  [Illuminate\Database\QueryException]                                                                                                                                                                                                                                                                                                                         
  SQLSTATE[HY000]: General error: 1 table "nodes" already exists (SQL: create table "nodes" ("id" integer not null primary key autoincrement, "name" varchar not null, "slug" varchar null, "parent_node" integer null, "description" text null, "topic_count" integer not null default '0', "created_at" datetime not null, "updated_at" datetime not null))  






  [PDOException]                                                  
  SQLSTATE[HY000]: General error: 1 table "nodes" already exists  



migrate [--bench[="..."]] [--database[="..."]] [--force] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]

FYI, here are the migrations that have been processed

kadimi@bayn:~/workspace (master) $ yes | php artisan migrate:rollback
**************************************
*     Application In Production!     *
**************************************

Rolled back: 2014_08_10_085349_create_topics_table
Rolled back: 2014_08_08_234417_create_users_table
Rolled back: 2014_01_03_011552_create_site_statuses_table
kadimi@bayn:~/workspace (master) $ 
@ghost
Copy link

ghost commented Aug 20, 2015

Can you show your migrations table records ?

@pearlzhu
Copy link

I don't know ,I should do something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@kadimi @pearlzhu and others