|
Lines 70-83
ok( ! index_exists( 'borrowers', 'xxx'), 'Constraint xxx does not exist' );
Link Here
|
| 70 |
ok( foreign_key_exists( 'borrowers', 'borrowers_ibfk_1' ), 'FK borrowers_ibfk_1 exists' ); |
70 |
ok( foreign_key_exists( 'borrowers', 'borrowers_ibfk_1' ), 'FK borrowers_ibfk_1 exists' ); |
| 71 |
ok( ! foreign_key_exists( 'borrowers', 'xxx' ), 'FK xxxx does not exist' ); |
71 |
ok( ! foreign_key_exists( 'borrowers', 'xxx' ), 'FK xxxx does not exist' ); |
| 72 |
|
72 |
|
| 73 |
<<<<<<< HEAD |
|
|
| 74 |
ok( unique_key_exists( 'items', 'itembarcodeidx' ), 'UNIQUE KEY itembarcodeidx exists' ); |
73 |
ok( unique_key_exists( 'items', 'itembarcodeidx' ), 'UNIQUE KEY itembarcodeidx exists' ); |
| 75 |
ok( ! unique_key_exists( 'borrowers', 'xxx' ), 'UNIQUE KEY xxxx does not exist' ); |
74 |
ok( ! unique_key_exists( 'borrowers', 'xxx' ), 'UNIQUE KEY xxxx does not exist' ); |
| 76 |
|
75 |
|
| 77 |
|
|
|
| 78 |
======= |
| 79 |
ok( primary_key_exists( 'borrowers' ), 'Borrowers does have a primary key on some column'); |
76 |
ok( primary_key_exists( 'borrowers' ), 'Borrowers does have a primary key on some column'); |
| 80 |
>>>>>>> Bug 26326: (follow-up) Add ability to check for existence of any primary key |
|
|
| 81 |
ok( primary_key_exists( 'borrowers', 'borrowernumber'), 'Borrowers has primary key on borrowernumber'); |
77 |
ok( primary_key_exists( 'borrowers', 'borrowernumber'), 'Borrowers has primary key on borrowernumber'); |
| 82 |
ok( ! primary_key_exists( 'borrowers', 'email'), 'Borrowers does not have a primary key on email'); |
78 |
ok( ! primary_key_exists( 'borrowers', 'email'), 'Borrowers does not have a primary key on email'); |
| 83 |
|
79 |
|
| 84 |
- |
|
|