# Upgrade to 16.1.005 prop\_id

**URL:** <https://help.egroupware.org/t/upgrade-to-16-1-005-prop-id/69965>\
**Category:** eGW-users\
**Created:** [November 12, 2016, 4:44pm UTC](https://help.egroupware.org/t/upgrade-to-16-1-005-prop-id/69965 "2016-11-12T16:44:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uwland](https://help.egroupware.org/letter_avatar_proxy/v4/letter/u/3ec8ea/32.png) [@Uwland](https://help.egroupware.org/u/Uwland)\
**Post date:** [November 12, 2016, 4:44pm UTC](https://help.egroupware.org/t/upgrade-to-16-1-005-prop-id/69965/1 "2016-11-12T16:44:00Z")

</div>

When upgrading to 16.1.005 I get the following error message:

Invalid SQL: SELECT fs\_id,prop\_namespace,prop\_name,MAX(prop\_id) AS prop\_id  
FROM egw\_sqlfs\_props  
GROUP BY fs\_id,prop\_namespace,prop\_name  
HAVING COUNT(\*) \> 1  
Unknown column ‘prop\_id’ in ‘field list’ (1054)

The table egw\_sqlfs\_props has the following fieldnames:fs\_id,prop\_namespace,prop\_name and prop\_value. The table does not contain any data.

Please advise.

---

<div class="post-metadata">

**Author:** ![RalfBecker](https://help.egroupware.org/user_avatar/help.egroupware.org/ralfbecker/32/1307_2.png) [@RalfBecker](https://help.egroupware.org/u/RalfBecker)\
**Post date:** [November 14, 2016, 1:08pm UTC](https://help.egroupware.org/t/upgrade-to-16-1-005-prop-id/69965/2 "2016-11-14T13:08:54Z")

</div>

> When upgrading to 16.1.005 I get the following error message:
> 
> Invalid SQL: SELECT fs\_id,prop\_namespace,prop\_name,MAX(prop\_id) AS prop\_id  
> FROM egw\_sqlfs\_props  
> GROUP BY fs\_id,prop\_namespace,prop\_name  
> HAVING COUNT(\*) \> 1  
> Unknown column ‘prop\_id’ in ‘field list’ (1054)
> 
> The table egw\_sqlfs\_props has the following  
> fieldnames:fs\_id,prop\_namespace,prop\_name and prop\_value. The table does not  
> contain any data.

Looks like you somehow lack the update 14.2.022:

> <https://github.com/EGroupware/egroupware/blob/14.2/phpgwapi/setup/tables_update.inc.php#L682>

prop\_id column itself is easy to create in eg. phpMyAdmin or with  
following SQL:

```
   ALTER

```

[http://localhost/phpMyAdmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/alter-table.html](http://localhost/phpMyAdmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/alter-table.html) TABLE  
[http://localhost/phpMyAdmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/alter-table.html](http://localhost/phpMyAdmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/alter-table.html) `egw_sqlfs_props` ADD `prop_id` INT  
[http://localhost/phpMyAdmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/numeric-types.html](http://localhost/phpMyAdmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/numeric-types.html) NOT  
[http://localhost/phpMyAdmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/logical-operators.html#operator\_not](http://localhost/phpMyAdmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/logical-operators.html#operator_not) NULL AUTO\_INCREMENT, ADD PRIMARY KEY (`prop_id`)

Question is what other updates you missed ☹

The 16.1.005 Update removes wrongly created doublicate properties, which  
you dont have with an empty table, changes the index of fs\_id,  
prop\_namespace, prop\_value to be unique and re-creates prop\_id column  
and index.

Ralf

–  
Ralf Becker  
EGroupware GmbH [[www.egroupware.org](http://www.egroupware.org)]  
Handelsregister HRB Kaiserslautern 3587  
Geschäftsführer Birgit und Ralf Becker  
Leibnizstr. 17, 67663 Kaiserslautern, Germany  
Telefon +49 631 31657-0

---

<div class="post-metadata">

**Author:** ![Uwland](https://help.egroupware.org/letter_avatar_proxy/v4/letter/u/3ec8ea/32.png) [@Uwland](https://help.egroupware.org/u/Uwland)\
**Post date:** [November 15, 2016, 3:00am UTC](https://help.egroupware.org/t/upgrade-to-16-1-005-prop-id/69965/3 "2016-11-15T03:00:52Z")

</div>

There were already 3 primary keys in that table…

After further research I noticed that egroupware-epl-compat was not automatically installed when using the automated installer for Debian 8.0. After installing egroupware-epl-compat I restored the database and was able to upgrade without any issues.

---

<div class="post-metadata">

**Author:** ![RalfBecker](https://help.egroupware.org/user_avatar/help.egroupware.org/ralfbecker/32/1307_2.png) [@RalfBecker](https://help.egroupware.org/u/RalfBecker)\
**Post date:** [November 15, 2016, 8:13am UTC](https://help.egroupware.org/t/upgrade-to-16-1-005-prop-id/69965/4 "2016-11-15T08:13:29Z")

</div>

Hi,

> There were already 3 primary keys in that table…
> 
> After further research I noticed that egroupware-epl-compat was not  
> automatically installed when using the automated installer for Debian 8.0.  
> After installing egroupware-epl-compat I restored the database and was able  
> to upgrade without any issues.

Ok, that’s good to know.

apt-get should install egroupware-epl-compat on upgrade, only new  
installation can work without it.  
Thought you can remove egroupware-epl-compat after the upgrade, if you  
dont need any of the old apps.

Ralf

–  
Ralf Becker  
EGroupware GmbH [[www.egroupware.org](http://www.egroupware.org)]  
Handelsregister HRB Kaiserslautern 3587  
Geschäftsführer Birgit und Ralf Becker  
Leibnizstr. 17, 67663 Kaiserslautern, Germany  
Telefon +49 631 31657-0

---

<div class="post-metadata">

**Author:** ![grochap](https://help.egroupware.org/user_avatar/help.egroupware.org/grochap/32/6168_2.png) [@grochap](https://help.egroupware.org/u/grochap)\
**Post date:** [May 16, 2017, 11:05pm UTC](https://help.egroupware.org/t/upgrade-to-16-1-005-prop-id/69965/5 "2017-05-16T23:05:45Z")

</div>

Hello,

where can I find that package for download ?

egroupware-epl-compat

thank you

- Guilherme Rocha\*  
Mobile: +55 71 99279 0829  
Phone: +55 11 4063 7533  
Web: \*[http://gf7brasil.net](http://gf7brasil.net) [http://gf7brasil.net](http://gf7brasil.net) \*  
D-U-N-S Number: 899519849

[https://gf7brasil.net](https://gf7brasil.net)

```
 <https://br.linkedin.com/in/grochap>

```
