Changed default date to Epoch to hopefully fix postgres problems

This commit is contained in:
zone 2001-08-11 08:55:19 +00:00
parent 7c3002349a
commit 04eb57e6da
3 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,7 @@
* option) any later version. *
\**************************************************************************/
$oProc->query ("INSERT INTO phpgw_vfs (file_id, owner_id, createdby_id, modifiedby_id, created, modified, size, mime_type, deleteable, comment, app, directory, name, link_directory, link_name) VALUES (1,0,0,NULL,'2000-01-01',NULL,NULL,'Directory','Y',NULL,NULL,'/','', NULL, NULL)");
$oProc->query ("INSERT INTO phpgw_vfs (file_id, owner_id, createdby_id, modifiedby_id, created, modified, size, mime_type, deleteable, comment, app, directory, name, link_directory, link_name) VALUES (2,0,0,NULL,'2000-01-01',NULL,NULL,'Directory','Y',NULL,NULL,'/','home', NULL, NULL)");
$oProc->query ("INSERT INTO phpgw_vfs (owner_id, createdby_id, modifiedby_id, created, modified, size, mime_type, deleteable, comment, app, directory, name, link_directory, link_name) VALUES (1,0,0,NULL,'1970-01-01',NULL,NULL,'Directory','Y',NULL,NULL,'/','', NULL, NULL)");
$oProc->query ("INSERT INTO phpgw_vfs (owner_id, createdby_id, modifiedby_id, created, modified, size, mime_type, deleteable, comment, app, directory, name, link_directory, link_name) VALUES (2,0,0,NULL,'1970-01-01',NULL,NULL,'Directory','Y',NULL,NULL,'/','home', NULL, NULL)");
?>

View File

@ -23,7 +23,7 @@
'owner_id' => array('type' => 'int', 'precision' => 4,'nullable' => False),
'createdby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'modifiedby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'created' => array('type' => 'date','nullable' => False),
'created' => array('type' => 'date','nullable' => False,'default' => '1970-01-01'),
'modified' => array('type' => 'date','nullable' => True),
'size' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'mime_type' => array('type' => 'varchar', 'precision' => 150,'nullable' => True),

View File

@ -23,7 +23,7 @@
'owner_id' => array('type' => 'int', 'precision' => 4,'nullable' => False),
'createdby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'modifiedby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'created' => array('type' => 'date','nullable' => False,'default' => '0000-00-00'),
'created' => array('type' => 'date','nullable' => False,'default' => '1970-01-01'),
'modified' => array('type' => 'date','nullable' => True),
'size' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'mime_type' => array('type' => 'varchar', 'precision' => 150,'nullable' => True),