Пример #1
0
 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->schemaDomainMap[PropelTypes::BOOLEAN] = new Domain(PropelTypes::BOOLEAN_EMU, "NUMBER", "1", "0");
     $this->schemaDomainMap[PropelTypes::CLOB] = new Domain(PropelTypes::CLOB_EMU, "CLOB");
     $this->schemaDomainMap[PropelTypes::CLOB_EMU] = $this->schemaDomainMap[PropelTypes::CLOB];
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, "NUMBER", "3", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, "NUMBER", "5", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, "NUMBER", "20", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DECIMAL, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARCHAR, "NVARCHAR2"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "NVARCHAR2", "2000"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATE"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATE"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "TIMESTAMP"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "LONG RAW"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "BLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONG RAW"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, "NVARCHAR2", "2000"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, "NVARCHAR2", "2000"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, "NUMBER", "3", "0"));
 }
Пример #2
0
 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->schemaDomainMap[PropelTypes::BOOLEAN] = new Domain(PropelTypes::BOOLEAN_EMU, 'NUMBER', '1', '0');
     $this->schemaDomainMap[PropelTypes::CLOB] = new Domain(PropelTypes::CLOB_EMU, 'CLOB');
     $this->schemaDomainMap[PropelTypes::CLOB_EMU] = $this->schemaDomainMap[PropelTypes::CLOB];
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, 'NUMBER', '3', '0'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, 'NUMBER', '5', '0'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, 'NUMBER'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, 'NUMBER', '20', '0'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, 'NUMBER'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, 'FLOAT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DECIMAL, 'NUMBER'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, 'NUMBER'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARCHAR, 'NVARCHAR2'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, 'NVARCHAR2', '2000'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, 'DATE'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, 'DATE'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, 'TIMESTAMP'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, 'LONG RAW'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, 'BLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, 'LONG RAW'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, 'LONG RAW'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, 'NVARCHAR2', '2000'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, 'NUMBER', '3', '0'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::SET, 'NUMBER'));
 }
Пример #3
0
 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "DECIMAL"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "MEDIUMTEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "MEDIUMBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONGBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "LONGBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "LONGTEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, "MEDIUMTEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, "MEDIUMTEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, "TINYINT"));
 }
Пример #4
0
 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, 'DECIMAL'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, 'MEDIUMTEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, 'DATETIME'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, 'BLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, 'MEDIUMBLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, 'LONGBLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, 'LONGBLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, 'LONGTEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, 'MEDIUMTEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, 'MEDIUMTEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, 'TINYINT'));
 }
 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $version = \SQLite3::version();
     $version = $version['versionString'];
     $this->foreignKeySupport = version_compare($version, '3.6.19') >= 0;
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, 'DECIMAL'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, 'MEDIUMTEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, 'DATETIME'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, 'BLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, 'MEDIUMBLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, 'LONGBLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, 'LONGBLOB'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, 'LONGTEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, 'MEDIUMTEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, 'MEDIUMTEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, 'TINYINT'));
 }
Пример #6
0
 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "BOOLEAN"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, "INT2"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, "INT2"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, "INT8"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, "FLOAT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "DOUBLE PRECISION"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::FLOAT, "DOUBLE PRECISION"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BYTEA"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "BYTEA"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "BYTEA"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "BYTEA"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, "INT2"));
 }
 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, 'BOOLEAN'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, 'INT2'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, 'INT2'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, 'INT8'));
     //$this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, 'FLOAT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, 'DOUBLE PRECISION'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::FLOAT, 'DOUBLE PRECISION'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, 'TEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, 'BYTEA'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, 'BYTEA'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, 'BYTEA'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, 'BYTEA'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, 'TEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, 'TEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, 'TEXT'));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, 'INT2'));
 }
 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, "INT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "INT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "VARCHAR(MAX)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "VARCHAR(MAX)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_DATE, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_TIMESTAMP, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BINARY(7132)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "VARBINARY(MAX)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "VARBINARY(MAX)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "VARBINARY(MAX)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, "VARBINARY(MAX)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, "VARCHAR(MAX)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, "TINYINT"));
 }