Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
c5b694c5
Commit
c5b694c5
authored
Sep 23, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
6395d945
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
27 deletions
+24
-27
data-types.txt
...l/new/docs/en/basic-schema-mapping/columns/data-types.txt
+24
-27
No files found.
manual/new/docs/en/basic-schema-mapping/columns/data-types.txt
View file @
c5b694c5
...
...
@@ -257,7 +257,7 @@ class Test extends Doctrine_Record {
Consider the following definition:
<
?php
<
code type="php">
class Example extends Doctrine_Record
{
public function setTableDefinition()
...
...
@@ -307,41 +307,38 @@ class Example extends Doctrine_Record
'type' => 'blob',
));
}
?>
</code>
The above example will create a database table as such in Pgsql:
|| Column
|| Type || Not Null Default comment
|| id
|| character(32)
|| somename
|| character || varying(12)
|| somedate
|| date
|| sometimestamp || timestamp without time zone
|| someboolean
|| boolean
|| somedecimal
|| numeric(18,2)
|| somefloat
|| double precision
|| sometime
|| time without time zone NOT NULL '12:34:05'::time without time zone
|| someclob
|| text
|| someblob
|| bytea
|| Column
|| Type || Not Null ||Default || comment ||
|| id
|| character(32) || || || ||
|| somename
|| character || varying(12) || || || ||
|| somedate
|| date || || || ||
|| sometimestamp || timestamp without time zone
|| || || ||
|| someboolean
|| boolean || || || ||
|| somedecimal
|| numeric(18,2) || || || ||
|| somefloat
|| double precision || || || ||
|| sometime
|| time without time zone || NOT NULL || '12:34:05' || ||
|| someclob
|| text || || || ||
|| someblob
|| bytea || || || ||
And the following table in Mysql:
|| Field
Type Collation Attributes Null Default comment
id char(32) YES
somename varchar(12) latin1_swedish_ci YES
somedate date YES
sometimestamp timestamp without time zone YES
someboolean tinyint(1) YES
somedecimal decimal(18,2) YES
somefloat double YES
sometime time NO 12:34:05
someclob longtext latin1_swedish_ci YES
someblob longblob binary YES
|| Field
|| Type || Collation || Attributes || Null || Default || comment ||
|| id || char(32) || || || YES || || ||
|| somename || varchar(12) || latin1_swedish_ci || || YES || || ||
|| somedate || date || || || YES || || ||
|| sometimestamp || timestamp without time zone || || || YES || || ||
|| someboolean || tinyint(1) || || || YES || || ||
|| somedecimal || decimal(18,2) || || || YES || || ||
|| somefloat || double || || || YES || || ||
|| sometime || time || || || NO || 12:34:05 || ||
|| someclob || longtext || latin1_swedish_ci || || YES || || ||
|| someblob || longblob || || binary || YES || || ||
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment