PageRenderTime 9ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/plugins/dbmigrate/templates/remove-table.cfc

http://raihan.googlecode.com/
ColdFusion CFScript | 25 lines | 23 code | 2 blank | 0 comment | 0 complexity | d7ba75c62637e18312b80747a1f53d15 MD5 | raw file
 1<!---
 2    |----------------------------------------------------------------------------------------------|
 3	| Parameter  | Required | Type    | Default | Description                                      |
 4    |----------------------------------------------------------------------------------------------|
 5	| name       | Yes      | string  |         | table name to drop                               |
 6    |----------------------------------------------------------------------------------------------|
 7
 8    EXAMPLE:
 9      dropTable(name='employees');
10--->
11<cfcomponent extends="[extends]" hint="[description]">
12  <cffunction name="up">
13    <cfscript>
14	    dropTable(name='tableName');
15    </cfscript>
16  </cffunction>
17  <cffunction name="down">
18    <cfscript>
19	    t = createTable(name='tableName');
20	   
21	    t.timestamps();
22	    t.create();
23    </cfscript>
24  </cffunction>
25</cfcomponent>