Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] Match converted to DBAL

Subject: COmanage Developers List

List archive

[comanage-dev] Match converted to DBAL


Chronological Thread 
  • From: Benn Oshrin <>
  • To: COmanage Dev <>
  • Subject: [comanage-dev] Match converted to DBAL
  • Date: Sun, 17 Feb 2019 09:15:05 -0500

I just pushed a commit to match/develop that switches from ADOdb to DBAL for schema management. (ADOdb is still used for inline database calls, I'll convert that later.)

In testing, I noticed that DBAL throws spurious errors if you try to manage a table it didn't previously create. What that means is that if you already have a match database created by ADOdb, you'll need to create a new database for DBAL to manage. (You'll then need to migrate the data from the old to the new somehow.) I'm not going to put any effort into mitigating this because there are no production instances that I know of.

The actual command for schema management remains the same

./bin/cake database

except that it now supports -n, so you can see what changes would be made without actually executing them. The schema file itself is in config/schema/schema.json.

I've also created a new repository for code common to both Match and Registry (PE):

https://github.internet2.edu/COmanage/common

Let me know if you run into any issues with this.

Thanks,

-Benn-


  • [comanage-dev] Match converted to DBAL, Benn Oshrin, 02/17/2019

Archive powered by MHonArc 2.6.19.

Top of Page