[ckan-dev] how to change attribute name of table in datastore
Dominik Moritz
dominik.moritz at okfn.org
Mon May 6 16:28:49 UTC 2013
Hi 天龙出云,
On 6 May 2013, at 15:33, 天龙出云 <dragoniszhang at gmail.com> wrote:
> Hello everyon,
>
> I have two questions here.
>
> The first one is how to change attribute name of table in datastore. For
> example, now when I upload a csv file, datastorer will use the first row of
> the file to be the attribute names, but what shall I do if I want to use
> the names configured on a web page to be the names. Is threre any good
> way to implement that without recoding the core of CKAN, such as using the
> extension?
There is not way to change the column names through the API. You will have to change it directly in the database. If you haven't imported too much data, you could also delete and recreate the resource with different column names.
>
> The second question is that whether can I import ckan project into Eclipse
> with PyDev plugin. On my ubuntu I have Eclipse installed and I do not want
> to install another IDE like PyCharm.
>
> Thanks for your help.
Best wishes,
Dominik
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
More information about the ckan-dev
mailing list