Closed michalochman closed 5 years ago
Looks like this is some Postgres 11 compatibility issue, I had no problem installing Craft on Postgres 10.
Actually, I take my last comment back, I'm unable to install on a fresh Postgres 10.9 as well.
Just tested with Postgres 10.9 and didn’t have any issues. Can you give me more details about your environment?
Curious about your environment as well... is the fieldgroups
table the only missing one when you get that error?
@angrybrad @brandonkelly must be some issue with my other config files – I haven't experienced any issues while setting up reproduction scenario on Docker (using both PostgreSQL 10.9 and 11.4) with no config other than .env
file. I'll follow up if/when I find what was the root cause.
Can you give me more details about your environment?
I run it via pretty simple docker-compose setup, I'll share it when I find the cause.
Curious about your environment as well... is the
fieldgroups
table the only missing one when you get that error?
No tables were created in fact – not sure if Craft runs migrations using transactional DDL, but if it doesn't then that would be strange. The error pops up during a call to insertDefaultData
step of install migration.
I'll follow up if/when I find what was the root cause.
Cool, will close this for now. Let us know if you find something.
Hi all, I was having the same issue and came across this post. After some testing with different setups using vagrant and ansible to build a fresh box each test; it seems that if you change the database schema to anything other than "public" this error occurs. Hope that helps hone in on the issue - we would love to be able to use a different schema name :)
Thanks!
@seanrabey that’s a Yii bug (https://github.com/yiisoft/yii2/issues/12763). I’ll ping them about it.
@seanrabey Just looked into it a bit. If you want Craft to use a different schema, then you will need to change your search_path Postgres config setting to list that schema before public
. Yii’s yii\db\Schema::$defaultSchema
property (which Craft’s schema
DB config setting maps to) is really just a way of telling Yii that it can safely omit that schema when building database queries. I’ve updated the setting’s docblock for the next release to clarify that.
Description
I can't install Craft because of an exception:
I'm not sure why it happens, because craft doesn't report an error on that table:
See full output below.
Steps to reproduce
craft install
Additional info
config/db.php
:.env
: