Skip to content
Snippets Groups Projects
Select Git revision
20 results

setup

Forked from GitLab.org / GitLab FOSS
8484 commits behind the upstream repository.
  • Yorick Peterse's avatar
    a54af831
    Use rake db:reset instead of db:setup · a54af831
    Yorick Peterse authored
    Using db:reset ensures existing tables are first dropped. This in turn
    ensures that we can drop tables regardless of any foreign key
    constraints. While CE currently doesn't have any foreign keys EE defines
    the following relation:
    
        remote_mirrors.project_id -> projects.id
    
    MySQL will complain whenever you try to drop the "projects" table first
    even when using "DROP TABLE ... CASCADE".
    Verified
    a54af831
    History
    Use rake db:reset instead of db:setup
    Yorick Peterse authored
    Using db:reset ensures existing tables are first dropped. This in turn
    ensures that we can drop tables regardless of any foreign key
    constraints. While CE currently doesn't have any foreign keys EE defines
    the following relation:
    
        remote_mirrors.project_id -> projects.id
    
    MySQL will complain whenever you try to drop the "projects" table first
    even when using "DROP TABLE ... CASCADE".
setup 805 B