V8-archive: Unable to remove unique on a field

Created on 11 Aug 2019  Â·  14Comments  Â·  Source: directus/v8-archive

Steps to Reproduce

  • Fresh install of v2.4.0
  • Create a collection
  • Add a text field with unique enabled
  • Modify the text field to disable unique

Expected Behavior

The unique of field should be removed.

Actual Behavior

The field is still unique.

Other Context & Screenshots

Screen recording

Technical Details

  • Device: Desktop
  • OS: Win 10 10.0.18362.145
  • Web Server: Apache/2.4.29
  • PHP Version: PHP 7.1.30
  • Database: 10.2.26
  • Install Method: v2.4.0 build
  • Directus App: 7.9.0
bug api

Most helpful comment

@benhaynes - This will be on hold until PR from Zend-DB is not getting merged.

I recommended some changes there. So we have to wait/develop it.

All 14 comments

Try updating the field as you did, then refreshing the app before checking if it worked as expected. See what happens

@justrealmilk I tried your suggestion in DIrectus demo, the same thing happens, it still unique.

Hey @JbalTero

This is a known issue of Zend DB that user is not able to remove the constraint. You can check here

@benhaynes

I think we should update our fork repo of Zend-DB.

Hey @bjgajjar — any idea how complex this would be to update in our fork? I guess we would need to find out if this is just something they have "turned off" for some reason... or if it's a complex thing to get working.

Hey @benhaynes

any idea how complex this would be to update in our fork?

It's not that much complex actually. But I need access to the repo.

I guess we would need to find out if this is just something they have "turned off" for some reason.

Don't worry. I'll check before update the code.

Great, thanks @bjgajjar! I have given the API team admin access to the Zend fork.

https://github.com/directus/zend-db

@benhaynes - This will be on hold until PR from Zend-DB is not getting merged.

I recommended some changes there. So we have to wait/develop it.

Don't we have our own fork of that repo? I thought we did, but maybe I am mistaken.

Don't we have our own fork of that repo?

Yes, we have a forked repo. But as Zend-DB don't have this feature yet. We need to develop it by our self in our fork repo.

@benhaynes - Should we consider it a known issue or should we try to develop it?

I would like to mention here that we didn't take any decision yet for whether we should use fork repo or Zend-DB itself.

Let's hold on this, I don't think we want to fork Zend... and this _should_ be solved in the Laravel port. @rijkvanzanten @WoLfulus do you agree?

Zend-db is archived and no longer maintained, and it's a known issue in there. We rely on zend-db for our database abstraction layer. Once we're moved away from Zend-db, this issue will be resolved too.

Once we're moved away from Zend-db, this issue will be resolved too.

Agree. So should we close this or still need to wait until we moved away from Zend?

Lets leave it open until we've migrated away from Zend, as it won't be fixed until we do

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rijkvanzanten picture rijkvanzanten  Â·  3Comments

andgar2010 picture andgar2010  Â·  3Comments

maettyhawk picture maettyhawk  Â·  3Comments

cdwmhcc picture cdwmhcc  Â·  3Comments

chintohere picture chintohere  Â·  3Comments