schemanr.php 1.06 KB
<?php

/**
    SQL Table Schema Builder extension for the PHP Fat-Free Framework

    The contents of this file are subject to the terms of the GNU General
    Public License Version 3.0. You may not use this file except in
    compliance with the license. Any of the license terms and conditions
    can be waived if you get permission from the copyright holder.

    crafted by   __ __     __
                |__|  |--.|  |--.-----.-----.
                |  |    < |    <|  -__|-- __|
                |__|__|__||__|__|_____|_____|

    Copyright (c) 2014 by ikkez
    Christian Knuth <ikkez0n3@gmail.com>
    https://github.com/ikkez/F3-Sugar/

        @package DB
        @version 2.1.0
 **/


namespace DB\SQL;

use DB\SQL;

class Schemanr extends Schema {
	const 
		DT_DECIMAL = 'DECIMAL';

    public function __construct(\DB\SQL $db)
    {
    	parent::__construct($db);
    	$this->dataTypes['DECIMAL'] = array(
    					'mysql|sqlite2?|ibm' => 'DECIMAL',
    					'pgsql|sybase|odbc|sqlsrv' => 'double precision',
    					'mssql|dblib' => 'decimal',    			
    	);
    }

}