-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Milestone
Description
MySQL 5.5
<cfcomponent extends="plugins.dbmigrate.Migration" hint="creates groups table">
<cffunction name="up">
<cfscript>
t = createTable(name='groups');
t.string(columnNames='displayName', null=false, limit='100');
t.string(columnNames='nameSpace', null=false, limit='100');
t.string(columnNames='description', limit='255');
t.references('user');
t.timestamps();
t.create();
</cfscript>
</cffunction>
<cffunction name="down">
<cfscript>
dropTable('groups');
</cfscript>
</cffunction>
</cfcomponent>
results in the following sql
CREATE TABLE groups (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
displayName VARCHAR(100) NOT NULL,
nameSpace VARCHAR(100) NOT NULL,
description VARCHAR(255),
userid INT NOT NULL,
createdat DATETIME,
updatedat DATETIME,
deletedat DATETIME,
);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels