-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tools] Generate tables include path fix #8674
Conversation
24fe776
to
be20724
Compare
Still getting an error when running from a different directory. I think line 34 needs to be modified as well |
be20724
to
7fc0fbe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everythings working great! Left a comment about the added print statement, but the scripts are working well.
@@ -38,14 +38,15 @@ | |||
foreach ($items as $item) { | |||
$paramId = ""; | |||
$bits = explode("{@}", trim($item)); | |||
print_r($bits); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this meant to be added or was it for debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks :)
7fc0fbe
to
faf8e2c
Compare
tools/generate_tables_sql.php
Outdated
require_once "../php/libraries/Database.class.inc"; | ||
require_once "../php/libraries/NDB_Config.class.inc"; | ||
require_once "../php/libraries/NDB_BVL_Instrument.class.inc"; | ||
require_once __DIR__ . "/../php/libraries/Database.class.inc"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why aren't these all autoloaded?
require_once "../php/libraries/Database.class.inc"; | ||
require_once "../php/libraries/NDB_Config.class.inc"; | ||
require_once "../php/libraries/NDB_BVL_Instrument.class.inc"; | ||
require_once __DIR__ . "/../php/libraries/Database.class.inc"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with these
faf8e2c
to
54d8766
Compare
@driusan Ready for second review |
54d8766
to
6a9285e
Compare
Re-tested and it's working well with last update |
Fix the include paths to execute the tools from anywhere without breaking the script.
Fix the include paths to execute the tools from anywhere without breaking the script.