PageRenderTime 22ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://raihan.googlecode.com/
ColdFusion CFScript | 23 lines | 22 code | 1 blank | 0 comment | 0 complexity | 374f2de995c779956e93f5bb2384a7bd MD5 | raw file
 1<!---
 2    |----------------------------------------------------------------------------------------------|
 3	| Parameter  | Required | Type    | Default | Description                                      |
 4    |----------------------------------------------------------------------------------------------|
 5	| oldName    | Yes      | string  |         | existing table name                              |
 6	| newName    | Yes      | string  |         | new table name                              |
 7    |----------------------------------------------------------------------------------------------|
 8
 9    EXAMPLE:
10      renameTable(oldName='employees', newName='users');
11--->
12<cfcomponent extends="[extends]" hint="[description]">
13  <cffunction name="up">
14    <cfscript>
15    renameTable(oldName='',newName='');
16    </cfscript>
17  </cffunction>
18  <cffunction name="down">
19    <cfscript>
20    renameTable(oldName='',newName='');
21    </cfscript>
22  </cffunction>
23</cfcomponent>