@@ -60,6 +60,9 @@ discard block |
||
60 | 60 | return false; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $name |
|
65 | + */ |
|
63 | 66 | public function hasConstraint( $name ) { |
64 | 67 | $conn = $this->getBindingHandle(); |
65 | 68 | |
@@ -1070,6 +1073,10 @@ discard block |
||
1070 | 1073 | return $this->relationExists( $sequence, 'S', $schema ); |
1071 | 1074 | } |
1072 | 1075 | |
1076 | + /** |
|
1077 | + * @param string $table |
|
1078 | + * @param string $trigger |
|
1079 | + */ |
|
1073 | 1080 | public function triggerExists( $table, $trigger ) { |
1074 | 1081 | $q = <<<SQL |
1075 | 1082 | SELECT 1 FROM pg_class, pg_namespace, pg_trigger |
@@ -1093,6 +1100,10 @@ discard block |
||
1093 | 1100 | return $rows; |
1094 | 1101 | } |
1095 | 1102 | |
1103 | + /** |
|
1104 | + * @param string $table |
|
1105 | + * @param string $rule |
|
1106 | + */ |
|
1096 | 1107 | public function ruleExists( $table, $rule ) { |
1097 | 1108 | $exists = $this->selectField( 'pg_rules', 'rulename', |
1098 | 1109 | [ |