Giter Club home page Giter Club logo

Comments (5)

JiLiZART avatar JiLiZART commented on August 30, 2024

I installed yii2-app-basic boilerplate.
Then i use php composer.phar require "artkost/yii2-qa"
After i install migrations.

php yii migrate/up --migrationPath=@vendor/artkost/yii2-qa/migrations
Yii Migration Tool (based on Yii v2.0.4-dev)

Creating migration history table "migration"...Done.
Total 5 new migrations to be applied:
    m140314_120159_create_qa_question_table
    m140314_120441_create_qa_answer_table
    m140314_120505_create_qa_tag_table
    m140316_070048_create_qa_vote_table
    m140512_191636_create_qa_favorite_table

Apply the above migrations? (yes|no) [no]:yes
*** applying m140314_120159_create_qa_question_table
    > create table {{%qa_question}} ... done (time: 0.102s)
*** applied m140314_120159_create_qa_question_table (time: 0.116s)

*** applying m140314_120441_create_qa_answer_table
    > create table qa_answer ... done (time: 0.050s)
*** applied m140314_120441_create_qa_answer_table (time: 0.059s)

*** applying m140314_120505_create_qa_tag_table
    > create table qa_tag ... done (time: 0.041s)
*** applied m140314_120505_create_qa_tag_table (time: 0.050s)

*** applying m140316_070048_create_qa_vote_table
    > create table qa_vote ... done (time: 0.033s)
*** applied m140316_070048_create_qa_vote_table (time: 0.042s)

*** applying m140512_191636_create_qa_favorite_table
    > create table qa_favorite ... done (time: 0.033s)
*** applied m140512_191636_create_qa_favorite_table (time: 0.042s)


Migrated up successfully.

My db config

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'pgsql:host=localhost;dbname=yii2qatest',
    'username' => 'root',
    'password' => 'password',
    'charset' => 'utf8',
    'schemaMap' => [
        'pgsql' => [
            'class' => 'yii\db\pgsql\Schema',
            'defaultSchema' => 'public'
        ]
    ]
];

Can you provide more information about your configuration ?

from yii2-qa.

xaxel avatar xaxel commented on August 30, 2024

My db config
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'pgsql:host=localhost;dbname=base',
'username' => 'postgres',
'password' => 'password ',
'charset' => 'utf8',
],

I installed advanced template

from yii2-qa.

JiLiZART avatar JiLiZART commented on August 30, 2024

Okay, i will try advanced

from yii2-qa.

robregonm avatar robregonm commented on August 30, 2024

Tried both: basic and advanced and worked fine. I think you should check your Yii version in composer (just update using composer).
Any further issues?

from yii2-qa.

chitwarnold avatar chitwarnold commented on August 30, 2024

the issues is with the migrations script it is meant to work with mysql only. {app_base_url}/console/migrations/*.php does not have an else : pgsql, it only has if for mysql

from yii2-qa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.