Commit 26e3e7a9 authored by meus's avatar meus

renamed text to string since text did not work in tests

parent a7c24a05
......@@ -27,7 +27,7 @@ $definition = array (
'default' => 0,
),
'name' => array (
'type' => 'text',
'type' => 'string',
'length' => 255
),
'datetime' => array (
......@@ -41,7 +41,7 @@ $conn->export->createTable('events', $definition);
The keys of the definition array are the names of the fields in the table. The values are arrays containing the required key 'type' as well as other keys, depending on the value of 'type'. The values for the 'type' key are the same as the possible Doctrine datatypes. Depending on the datatype, the other options may vary.
||~ Datatype ||~ length ||~ default ||~ not null ||~ unsigned ||~ autoincrement ||
|| text || x || x || x || || ||
|| strin || x || x || x || || ||
|| boolean || || x || x || || ||
|| integer || x || x || x || x || x ||
|| decimal || || x || x || || ||
......@@ -69,7 +69,7 @@ $definition = array (
'default' => 0,
),
'name' => array (
'type' => 'text',
'type' => 'string',
'length' => 255
)
);
......@@ -183,7 +183,7 @@ $a = array('name' => 'userlist',
'name' => array(
'length' => '20',
'definition' => array(
'type' => 'text',
'type' => 'string',
'length' => 20
)
)
......@@ -192,7 +192,7 @@ $a = array('name' => 'userlist',
'sex' => array(
'name' => 'gender',
'definition' => array(
'type' => 'text',
'type' => 'string',
'length' => 1,
'default' => 'M'
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment