Created
April 20, 2012 19:16
-
-
Save s992/2431139 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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