Export to GitHub

ruckusing - issue #42

Unable to generate alternate primary key in 3.x


Posted on Oct 27, 2010 by Massive Rhino

What steps will reproduce the problem? $t = $this->create_table('tokens', array('id' => false)); $t->column('token', 'string', array('limit' => 36, 'primary_key' => true)); // UUID $t->finish();

What is the expected output? CREATE TABLE tokens ( token varchar(36) NOT NULL DEFAULT '', PRIMARY KEY (token), ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

What do you see instead? CREATE TABLE tokens ( token varchar(36) DEFAULT NULL, ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

What version of the product are you using? On what operating system? Ruckusing 3.3

Comment #1

Posted on Oct 30, 2010 by Swift Giraffe

(No comment was entered for this change.)

Comment #2

Posted on Nov 3, 2010 by Swift Giraffe

I am moving the project to GitHub and I've also fixed this issue. Hang tight for more details.

Comment #3

Posted on Nov 3, 2010 by Swift Giraffe

This too has been implemented over on GitHub. Give it a try?

https://github.com/ruckus/ruckusing-migrations

Status: Started

Labels:
Type-Defect Priority-Medium