Location: PHPKode > projects > Maintainable PHP Framework > test/fixtures/migrations_with_decimal/1_give_me_big_numbers.php
<?php

class GiveMeBigNumbers extends Mad_Model_Migration_Base 
{
    public function up()
    {
        $table = $this->createTable('big_numbers');
            $table->column('bank_balance',        'decimal', array('precision' => 10, 'scale' => 2));
            $table->column('big_bank_balance',    'decimal', array('precision' => 15, 'scale' => 2));
            $table->column('world_population',    'decimal', array('precision' => 10));
            $table->column('my_house_population', 'decimal', array('precision' => 2));
            $table->column('value_of_e',          'decimal');
        $table->end();
    }

    public function down()
    {
        $this->dropTable('big_numbers');
    }
}
Return current item: Maintainable PHP Framework