<?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>Upgrade fails because script doesn&#039;t recognise name of shares tables</title> 
  <pubDate>Sat, 04 Apr 2026 11:52:06 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/13331</link> 
  <atom:link rel="self" type="application/rss+xml" title="Upgrade fails because script doesn&#039;t recognise name of shares tables" href="https://bugs.horde.org/ticket/13331/rss" /> 
  <description>Upgrade fails because script doesn&#039;t recognise name of shares tables</description> 
 
   
   
  <item> 
   <title>Here is the message I get when trying to update the database</title> 
   <description>Here is the message I get when trying to update the database schemas
SQLSTATE[42S02]: Base table or view not found: 1146 Table &#039;webmail.turba_shares&#039; doesn&#039;t exist

In our database, all the &quot;shares&quot; tables are named sharesng. It probably happened when converting the backend from datatree to SQL.</description> 
   <pubDate>Tue, 08 Jul 2014 20:17:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13331#t84533</link> 
  </item> 
   
  <item> 
   <title>If you don&#039;t have that table, you didn&#039;t migrate properly in</title> 
   <description>If you don&#039;t have that table, you didn&#039;t migrate properly in the past. You must migrate from an up-to-date Horde 3 version, as clearly documented in the upgrade instructions.</description> 
   <pubDate>Wed, 09 Jul 2014 09:17:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13331#t84551</link> 
  </item> 
   
  <item> 
   <title>&gt; If you don&#039;t have that table, you didn&#039;t migrate properly </title> 
   <description>&gt; If you don&#039;t have that table, you didn&#039;t migrate properly in the 
&gt; past. You must migrate from an up-to-date Horde 3 version, as clearly 
&gt; documented in the upgrade instructions.

We&#039;ve migrated properly in the past, but then switched to using sharesng and removed the old shares tables which only contained duplicated data.

Where are the old tables used? They were never kept in sync with the new ones

</description> 
   <pubDate>Wed, 09 Jul 2014 22:53:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13331#t84590</link> 
  </item> 
   
  <item> 
   <title>
&gt; We&#039;ve migrated properly in the past, but then switched t</title> 
   <description>
&gt; We&#039;ve migrated properly in the past, but then switched to using 
&gt; sharesng and removed the old shares tables which only contained 
&gt; duplicated data.

You shouldn&#039;t perform operations like this outside of migrations.

&gt; Where are the old tables used? They were never kept in sync with the new ones

They are used if the installation is not using the &quot;next generation&quot; share driver. Both are still maintained.</description> 
   <pubDate>Wed, 09 Jul 2014 23:00:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13331#t84591</link> 
  </item> 
   
  <item> 
   <title>&gt;
&gt;&gt; We&#039;ve migrated properly in the past, but then switched</title> 
   <description>&gt;
&gt;&gt; We&#039;ve migrated properly in the past, but then switched to using
&gt;&gt; sharesng and removed the old shares tables which only contained
&gt;&gt; duplicated data.
&gt;
&gt; You shouldn&#039;t perform operations like this outside of migrations.
&gt;
&gt;&gt; Where are the old tables used? They were never kept in sync with the 
&gt;&gt; new ones
&gt;
&gt; They are used if the installation is not using the &quot;next generation&quot; 
&gt; share driver. Both are still maintained.

On the one hand, I understand your position. It&#039;s never been removed, so you keep the schema updated, but if data is lost when switching between NG and non-NG (no data is migrated between tables), then maybe it would be best to update the schemas of what the installation is using and to use scripts to migrate from one backend to another?

(I haven&#039;t checked if data is copied over when switching backend)</description> 
   <pubDate>Wed, 09 Jul 2014 23:16:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13331#t84592</link> 
  </item> 
   
  <item> 
   <title>
&gt; On the one hand, I understand your position. It&#039;s never </title> 
   <description>
&gt; On the one hand, I understand your position. It&#039;s never been removed, 
&gt; so you keep the schema updated.

Yes, since some installations may have explicitly kept using the &quot;legacy&quot; share driver.

&gt; but if data is lost when switching 
&gt; between NG and non-NG (no data is migrated between tables), 

If you run NG for some period of time and then switch back to non-NG, yes, then any new shares or perms that were changed since the switch to NG would be lost.  The idea of having both drivers isn&#039;t to allow admins to switch back and forth at will, but rather to give a choice in drivers. Originally, IIRC, some fringe cases were showing better performance with the original driver (though this has probably changed since then), so we continued to provide, and maintain both drivers.

This is no different than supporting different database backends, or address book backends, or authentication backends etc... Just because we provide different drivers to switch between doesn&#039;t mean that data should be somehow automagically preserved when switching.

That being said, we DO offer a script that can convert between non-ng and ng shares at will. We just don&#039;t offer the backwards conversion at will since the idea is to move everyone towards the new driver anyway.
</description> 
   <pubDate>Wed, 09 Jul 2014 23:29:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13331#t84593</link> 
  </item> 
   
  <item> 
   <title>&gt; This is no different than supporting different database ba</title> 
   <description>&gt; This is no different than supporting different database backends, or 
&gt; address book backends, or authentication backends etc... Just because 
&gt; we provide different drivers to switch between doesn&#039;t mean that data 
&gt; should be somehow automagically preserved when switching.
&gt;
&gt; That being said, we DO offer a script that can convert between non-ng 
&gt; and ng shares at will. We just don&#039;t offer the backwards conversion 
&gt; at will since the idea is to move everyone towards the new driver 
&gt; anyway.
&gt;
I think I see what you mean. You want to keep the structure of as many backends as possible updated, to make it easy to switch from one to another.
From my point of view, any structure check/migration could be performed when the driver is changed or the data migrated via the scripts you provide, but in this case, since the tables are so similar, I can understand how it&#039;s easier to maintain that way, instead of modifying the configuration scripts.</description> 
   <pubDate>Wed, 09 Jul 2014 23:43:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13331#t84595</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
