schemanr.php
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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',
);
}
}