eagle-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qingwen220 <...@git.apache.org>
Subject [GitHub] eagle pull request #959: EAGLE-1051: update removePolicy
Date Wed, 21 Jun 2017 10:16:56 GMT
GitHub user qingwen220 opened a pull request:

    https://github.com/apache/eagle/pull/959

    EAGLE-1051: update removePolicy

    https://issues.apache.org/jira/browse/EAGLE-1051
    
    There is no need to do this check. As eagle has a table `policy_publishment` which has
defined the relationship between policies and publishments. 
    
    {code}
    CREATE TABLE IF NOT EXISTS policy_publishment (
      policyId VARCHAR(50),
      publishmentName VARCHAR(50),
      PRIMARY KEY(policyId, publishmentName),
      CONSTRAINT `policy_id_fk` FOREIGN KEY (`policyId`) REFERENCES `policy_definition` (`id`)
ON DELETE CASCADE ON UPDATE CASCADE,
      CONSTRAINT `publishment_id_fk` FOREIGN KEY (`publishmentName`) REFERENCES `publishment`
(`id`) ON DELETE CASCADE ON UPDATE CASCADE
    );
    {code}
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/qingwen220/eagle EAGLE-1051

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/eagle/pull/959.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #959
    
----
commit 118228d83fba85b467c73b30f5f1dc3dac7f2514
Author: Zhao, Qingwen <qingwzhao@apache.org>
Date:   2017-06-20T12:58:06Z

    update removePolicy

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message