cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wido den Hollander <>
Subject Do we allow ENUM database types?
Date Thu, 01 Aug 2013 18:12:23 GMT

I'm working on a disk cache setting for per disk offering which allows 
users to set it to:
- none (current behaviour and default)
- writeback
- writethrough

I've done some work in the disk-cache branch [0] where I created a new 
column called "cache_mode" in the disk_offering table.

It's currently a varchar(32), but only 3 strings are allowed in the 
column, as listed above.

We don't use enums anywhere in the database, so I was wondering if there 
is a good reason for that?

Otherwise I think using a enum here would be a good use-case.



View raw message