Creating a Module?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Creating a Module?

Post by jmansa »

I'm trying to create a module and in my method.install.php file I want to create databases but has run into a problem. I want to create a field like this:

new_field ENUM(yes,no) DEFAULT no NOTNULL

But it seems like I'm using the wrong syntax for enum... Can anybody help me with this?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Creating a Module?

Post by calguy1000 »

See this link: http://phplens.com/lens/adodb/docs-datadict.htm
adodb doesn't support enums as a portable type from what I see.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Re: Creating a Module?

Post by jmansa »

Arrrggghhh... What to do then... Manually?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Creating a Module?

Post by calguy1000 »

Yup, just use integers, or strings.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Re: Creating a Module?

Post by jmansa »

Thanks... Have to do!
Post Reply

Return to “Modules/Add-Ons”