Closed Bug 1163591 Opened 10 years ago Closed 10 years ago

The run_sql command should allow specifying the SQL statement via the command line

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

The help text for the run_sql command implies that the SQL can be specified either by file or via a statement on the CLI, however only the former is currently supported. This would make performing operations like OPTIMIZE TABLE after bug 1126943 easier.
Attachment #8604118 - Flags: review?(wlachance) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/6deb641608d966de08a488c640d6090b8e09c452 Bug 1163591 - run_sql: support specifying the SQL statement via the CLI Previously the run_sql manage.py command only supported reading the SQL command from a specified file. It can now also be provided via the CLI.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 1145998
No longer blocks: 1145998
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: