<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get Nuxeo to update the DDL of the users table when adding new fields ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323425#M10426</link>
    <description>&lt;P&gt;Hello Belgacem,&lt;/P&gt;
&lt;P&gt;If you've followed the documentation page, it should work without doing any kind of operation on the underlying database, being Postgres, Mongo or any other. So I guess this should be probably a bug related to Postgres, it would be great if someone else can reproduce it (I'm not aware of it).&lt;/P&gt;
&lt;P&gt;Thx&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 14:58:49 GMT</pubDate>
    <dc:creator>Gregory_Carlin</dc:creator>
    <dc:date>2021-04-28T14:58:49Z</dc:date>
    <item>
      <title>How to get Nuxeo to update the DDL of the users table when adding new fields ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323424#M10425</link>
      <description>&lt;P&gt;Hi everybody!, I'm attempting to add a new property to the user profile. I followed the documentation &lt;A href="https://doc.nuxeo.com/nxdoc/how-to-add-new-fields-to-the-user-profile-or-group-profile/"&gt;# Add New Fields to the User Profile or Group Profile&lt;/A&gt; and made the required changes in nuxeo studio, then, I performed a hot reload, and restarted the nuxeo server, but nuxeo did not create the new property in the database automatically, and I discovered the following error in the "nuxeo-error.log" file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Caused by: org.postgresql.util.PSQLException: ERROR: column "community" does not exist
  Position: 19
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2553)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2285)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:323)
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:473)
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:393)
	at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:164)
	at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:114)
	at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:122)
	at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:122)
	at org.nuxeo.ecm.directory.sql.SQLSession.getEntryFromSource(SQLSession.java:133)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to solve the problem, I had to update the user table ddl myself with the following sql request:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ALTER TABLE users ADD community varchar(255);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, my question is, is there an option to put in the nuxeo.conf file so that nuxeo updates the ddl (Data Definition Language) if the schema of an entity has been changed ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 22:42:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323424#M10425</guid>
      <dc:creator>Belgacem_Ghilou</dc:creator>
      <dc:date>2021-04-27T22:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Nuxeo to update the DDL of the users table when adding new fields ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323425#M10426</link>
      <description>&lt;P&gt;Hello Belgacem,&lt;/P&gt;
&lt;P&gt;If you've followed the documentation page, it should work without doing any kind of operation on the underlying database, being Postgres, Mongo or any other. So I guess this should be probably a bug related to Postgres, it would be great if someone else can reproduce it (I'm not aware of it).&lt;/P&gt;
&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 14:58:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323425#M10426</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2021-04-28T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Nuxeo to update the DDL of the users table when adding new fields ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323426#M10427</link>
      <description>&lt;P&gt;It seems to me like the contribution may not be hooked up properly. Any errors in the server.log when the server starts?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 16:57:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323426#M10427</guid>
      <dc:creator>Jackie_A</dc:creator>
      <dc:date>2021-04-28T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Nuxeo to update the DDL of the users table when adding new fields ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323427#M10428</link>
      <description>&lt;P&gt;I deployed my studio project on two nuxeo LTS 2021 instances, and when I restarted and tried to login to nuxeo, it crashes telling me that the column "community" does not exist. I had the same error for my two instances nuxeo lts 2021. But when I deployed my project on a nuxeo LTS 2019 instance, nuxeo automatically created the column for me and everything is fine. The PostgreSQL version used is 12.6.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 08:24:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323427#M10428</guid>
      <dc:creator>Belgacem_Ghilou</dc:creator>
      <dc:date>2021-04-30T08:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Nuxeo to update the DDL of the users table when adding new fields ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323428#M10429</link>
      <description>&lt;P&gt;Yes in the server.log file, I found the same error message.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 08:31:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-nuxeo-to-update-the-ddl-of-the-users-table-when/m-p/323428#M10429</guid>
      <dc:creator>Belgacem_Ghilou</dc:creator>
      <dc:date>2021-04-30T08:31:44Z</dc:date>
    </item>
  </channel>
</rss>

