Skip to content

ezcommunity/schemadoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Primary goal: documentation of the ez publish database schema
For this time, foreign keys will only be applied to the DB so that schemaSpy can generate 
the diagrams for the eZ Publish core database design and selected extensions.

Secondary goal: placeholder for creating foreign keys to existing schema.
The idea is to introduce foreign keys as a separate project
The foreign keys can be introduced to the bundled eZ Publish schema at a later point.
Potential purposes can be cascading deletes and concistency checks.


schemaSpy requires 

* java
* graphviz


To generate the schemaSpy diagrams

* Verify for db name username & password in generate_diagrams.sh or override with options.
* Run 'generate_diagrams.sh -a' (-h for help)

* The following example overrides db name, username and password and makes schemaSpy exclude some tables:
./generate_diagrams.sh -n ezflow -u cpg -p 123 -x "-I '(ezevent.*)|(ezcssesitestyle.*)|(ezcomment.*)|(ezsurvey.*)'" -a


To re-generate the sql foreign keys (already in the sql folder)

* symlink the git clone of schemadoc from the ezpublish extension folder (no need to activate as an extension)
* 'php extension/schemadoc/php/autogenkeys.php' generates the sql (to standard out, no html formating) found in fkeys_generated.sql
* fkeys_manual.sql contains SQL foreign keys not handled by autogenkeys.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published