Really useful software project management and source code hosting.    tell me more...
BROWSE: projects / users / groups
  GROUP


Really Useful Social coding!

Codaset is an open system, so you can browse and search through all the open source projects, and check out what your friends are coding. Follow them, befriend them, and fork their code; quickly and easily.
Every single open source project you create is free, so come on and use Codaset at no cost. Your first private or semi-private project is also free. Read more about what it costs after that.

Column Types

CakePHP DB Migrations supports a number of column/field types. Most are self explanatory, but a few might need some explaining.

    string
    text
    integer | int
    blob
    boolean | bool
    float
    date
    time
    timestamp | datetime
    fkey | fkeys

Here is an example of how you would use these types in conjunction with other attributes:

UP:
  add_field:
    users:
      last_name:
        type: string
        length: 10
DOWN:
  drop_field:
    users: last_name

Or better still, use the shortened format:

UP:
  add_field:
    users:
      last_name: 10
DOWN:
  drop_field:
    users: last_name

Because 'string' is the default type, we don't need to specify it. But if we want 'last_name' to a integer with a limit of 5 (some people might!), do this:

UP:
  add_field:
    users:
      last_name: [int, 5]
DOWN:
  drop_field:
    users: last_name

Attachments

No attachments found




Browse our wiki...




« previous version |
last edited about 1 year ago by Joel Moss |
| next version »