Skip to content

Instantly share code, notes, and snippets.

@s992
Created April 20, 2012 19:16
Show Gist options
  • Save s992/2431139 to your computer and use it in GitHub Desktop.
Save s992/2431139 to your computer and use it in GitHub Desktop.
<cfscript>
// Ignore cfscript tags, they're just for syntax highlighting.
component {
...
function onRequestStart() {
if( structKeyExists( url, 'ormDropCreate' ) ) {
dropTables();
ormReload();
}
if( structKeyExists( url, 'ormReload' ) ) {
ormReload();
}
}
function dropTables() {
var qrySvc = new query();
qrySvc.setSQL('
DROP TABLE table1;
DROP TABLE table2;
DROP TABLE table3;
');
qrySvc.execute();
}
...
}
// Ignore cfscript tags, they're just for syntax highlighting.
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment