Comments (5)
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.
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.
Okay, i will try advanced
from yii2-qa.
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.
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)
- Can you add email supporting? HOT 1
- Change delete
- Error Migrating
- error occurs when i install this extension HOT 12
- migration command it should be HOT 1
- Поддержка PostgreSQL HOT 6
- Call to undefined method app\models\User::find() HOT 6
- DI container error HOT 3
- Code to interface, not to implementation HOT 2
- XSS HOT 2
- Error in Ask form when no tags has been entered
- string2Array HOT 4
- Редактирование ответов HOT 2
- Typo in form-question.php HOT 1
- Cannot instantiate interface artkost\qa\models\QuestionInterface HOT 2
- HTML on content HOT 2
- Cannot declare class frontend\models\User, because the name is already in use HOT 4
- problem with vote HOT 1
- Tags from `qa-tags` only
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-qa.