<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>error creating tables with setup.php</title> 
  <pubDate>Tue, 07 Apr 2026 00:58:22 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7409</link> 
  <atom:link rel="self" type="application/rss+xml" title="error creating tables with setup.php" href="https://bugs.horde.org/ticket/7409/rss" /> 
  <description>error creating tables with setup.php</description> 
 
   
   
  <item> 
   <title>When I launch ./scripts/setup.php and try to create database</title> 
   <description>When I launch ./scripts/setup.php and try to create database tables, I have this error :



Creating database...

[ ERROR! ] Creating the tables failed. Please see the manual at docs/INSTALL

           for how to setup the database manually. Error messages:

MDB2 Error: unknown error

_doQuery: [Error message: Could not execute statement]

[Last executed query: CREATE  TABLE horde_alarms (alarm_id VARCHAR(255) DEFAULT &#039; &#039; NOT NULL, alarm_uid VARCHAR(255) DEFAULT NULL, alarm_start TIMESTAMP without time zone DEFAULT &#039;0000-00-00 00:00:00&#039; NOT NULL, alarm_end TIMESTAMP without time zone DEFAULT &#039;0000-00-00 00:00:00&#039;, alarm_methods VARCHAR(255) DEFAULT NULL, alarm_params TEXT, alarm_title VARCHAR(255) DEFAULT &#039; &#039; NOT NULL, alarm_text TEXT, alarm_snooze TIMESTAMP without time zone DEFAULT &#039;0000-00-00 00:00:00&#039;, alarm_dismissed SMALLINT DEFAULT 0 NOT NULL, alarm_internal TEXT)]

[Native message: ERREUR:  Valeur du champ date/time en dehors des limites : «0000-00-00 00:00:00»

HINT:  Peut-être avez-vous besoin d&#039;un paramètrage «datestyle» différent.]



The timestamps default values are bad : maybe &#039;0000-00-00 00:00:00&#039; have a correct syntax but it&#039;s not a valid date. I replace this default date with &#039;0001-01-01 00:00:00&#039; and the script runs fine.



So quick correction :

perl -i.orig -pe &quot;s/0000\-00\-00/0001-01-01/g&quot; ./scripts/sql/create.xml

</description> 
   <pubDate>Mon, 29 Sep 2008 18:02:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7409#t49289</link> 
  </item> 
   
  <item> 
   <title>http://pear.php.net/bugs/bug.php?id=14650</title> 
   <description>http://pear.php.net/bugs/bug.php?id=14650</description> 
   <pubDate>Tue, 07 Oct 2008 13:15:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7409#t49452</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/co.php/groupware/patches/pear-MDB2-Schema-Validate.php.patch?r=1.1</description> 
   <pubDate>Fri, 24 Oct 2008 22:47:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7409#t50000</link> 
  </item> 
   
  <item> 
   <title>Hopefully fixed this time for 1.2.1, with a patched schema v</title> 
   <description>Hopefully fixed this time for 1.2.1, with a patched schema validator.</description> 
   <pubDate>Fri, 24 Oct 2008 22:50:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7409#t50001</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
