GRANT ALL ON TABLE public.untitled_table TO "development_cartodb_user_25d25140-7e60-412d-92c5-35ff0a3239f2";
GRANT SELECT ON TABLE public.untitled_table TO tileuser;-- Table: public.test_table
-- DROP TABLE public.test_table;
CREATE TABLE public.test_table
(
cartodb_id bigint NOT NULL DEFAULT nextval('test_table_cartodb_id_seq'::regclass),
the_geom geometry(Geometry,4326),
the_geom_webmercator geometry(Geometry,3857),
permitid integer,
CONSTRAINT test_table_pkey PRIMARY KEY (cartodb_id)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE public.test_table
OWNER to "development_cartodb_user_25d25140-7e60-412d-92c5-35ff0a3239f2";
-- Index: test_table_the_geom_idx
-- DROP INDEX public.test_table_the_geom_idx;
CREATE INDEX test_table_the_geom_idx
ON public.test_table USING gist
(the_geom)
TABLESPACE pg_default;
-- Index: test_table_the_geom_webmercator_idx
-- DROP INDEX public.test_table_the_geom_webmercator_idx;
CREATE INDEX test_table_the_geom_webmercator_idx
ON public.test_table USING gist
(the_geom_webmercator)
TABLESPACE pg_default;
-- Trigger: test_quota
-- DROP TRIGGER test_quota ON public.test_table;
CREATE TRIGGER test_quota
BEFORE INSERT OR UPDATE
ON public.test_table
FOR EACH STATEMENT
EXECUTE PROCEDURE cartodb.cdb_checkquota('0.1', '-1', 'public');
-- Trigger: test_quota_per_row
-- DROP TRIGGER test_quota_per_row ON public.test_table;
CREATE TRIGGER test_quota_per_row
BEFORE INSERT OR UPDATE
ON public.test_table
FOR EACH ROW
EXECUTE PROCEDURE cartodb.cdb_checkquota('0.001', '-1', 'public');
-- Trigger: track_updates
-- DROP TRIGGER track_updates ON public.test_table;
CREATE TRIGGER track_updates
AFTER INSERT OR DELETE OR TRUNCATE OR UPDATE
ON public.test_table
FOR EACH STATEMENT
EXECUTE PROCEDURE cartodb.cdb_tablemetadata_trigger();
-- Trigger: update_the_geom_webmercator_trigger
-- DROP TRIGGER update_the_geom_webmercator_trigger ON public.test_table;
CREATE TRIGGER update_the_geom_webmercator_trigger
BEFORE INSERT OR UPDATE OF the_geom
ON public.test_table
FOR EACH ROW
EXECUTE PROCEDURE cartodb._cdb_update_the_geom_webmercator();-- Table: public.untitled_table
-- DROP TABLE public.untitled_table;
CREATE TABLE public.untitled_table
(
cartodb_id integer NOT NULL DEFAULT nextval('untitled_table_cartodb_id_seq0'::regclass),
the_geom geometry(Geometry,4326),
the_geom_webmercator geometry(Geometry,3857),
name text COLLATE pg_catalog."default",
description text COLLATE pg_catalog."default",
CONSTRAINT untitled_table_pkey PRIMARY KEY (cartodb_id)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE public.untitled_table
OWNER to "development_cartodb_user_25d25140-7e60-412d-92c5-35ff0a3239f2";
GRANT ALL ON TABLE public.untitled_table TO "development_cartodb_user_25d25140-7e60-412d-92c5-35ff0a3239f2";
GRANT SELECT ON TABLE public.untitled_table TO tileuser;
-- Index: untitled_table_the_geom_idx
-- DROP INDEX public.untitled_table_the_geom_idx;
CREATE INDEX untitled_table_the_geom_idx
ON public.untitled_table USING gist
(the_geom)
TABLESPACE pg_default;
-- Index: untitled_table_the_geom_webmercator_idx
-- DROP INDEX public.untitled_table_the_geom_webmercator_idx;
CREATE INDEX untitled_table_the_geom_webmercator_idx
ON public.untitled_table USING gist
(the_geom_webmercator)
TABLESPACE pg_default;
-- Trigger: test_quota
-- DROP TRIGGER test_quota ON public.untitled_table;
CREATE TRIGGER test_quota
BEFORE INSERT OR UPDATE
ON public.untitled_table
FOR EACH STATEMENT
EXECUTE PROCEDURE cartodb.cdb_checkquota('0.1', '-1', 'public');
-- Trigger: test_quota_per_row
-- DROP TRIGGER test_quota_per_row ON public.untitled_table;
CREATE TRIGGER test_quota_per_row
BEFORE INSERT OR UPDATE
ON public.untitled_table
FOR EACH ROW
EXECUTE PROCEDURE cartodb.cdb_checkquota('0.001', '-1', 'public');
-- Trigger: track_updates
-- DROP TRIGGER track_updates ON public.untitled_table;
CREATE TRIGGER track_updates
AFTER INSERT OR DELETE OR TRUNCATE OR UPDATE
ON public.untitled_table
FOR EACH STATEMENT
EXECUTE PROCEDURE cartodb.cdb_tablemetadata_trigger();
-- Trigger: update_the_geom_webmercator_trigger
-- DROP TRIGGER update_the_geom_webmercator_trigger ON public.untitled_table;
CREATE TRIGGER update_the_geom_webmercator_trigger
BEFORE INSERT OR UPDATE OF the_geom
ON public.untitled_table
FOR EACH ROW
EXECUTE PROCEDURE cartodb._cdb_update_the_geom_webmercator();--
---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
CARTO — Predict Through Location
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If I want to modify a user's platform limits, can I also do so by modifying the users table directly? For example, if I want to change an import rule, or execution run-time limit, can I just modify that value, or does it also need to be modified elsewhere?
Any idea what could still be preventing the ghost tables from showing up?
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.
If I want to modify a user's platform limits, can I also do so by modifying the users table directly? For example, if I want to change an import rule, or execution run-time limit, can I just modify that value, or does it also need to be modified elsewhere?
I have another loosely related question... If I want to modify a user's platform limits, can I also do so by modifying the users table directly? I see in a previous post it was suggested to use the rake command: rake cartodb:set_custom_limits_for_user[username,import_file_size,table_row_count,concurrent_imports]. Is there any reason I cannot modify the table directly?
Thanks for the thorough response. I have to apologize, as I am the least familiar with ruby, so it's not entirely clear to me how to utilize the controllers, and various other ruby tools in the link you pasted. If you could provide any insight into that at all, it would be really appreciated.
$ bundle exec rails c development
> u = User.where(username: 'yourusername').first
> u.user_render_timeout = u.user_render_timeout * 10> u.save
That being said, I did look at the carto_db_development table 'user_tables' and interestingly, the only table I see there is the table created through the builder, that shows up correctly in the builder. I'm wondering if the issue is related to what I had first mentioned.
Referencing the site's documentation, for multi user accounts I think I am supposed to provide the account name (in this case, 'cartotest') in the cdb_cartodbfytable command: SELECT cdb_cartodbfytable('cartotest', 'test_table')&api_key=APIKEY
When I do include the account name 'cartotest' however, I get an error in the response: Invalid schema name "cartotest"
I'm not exactly sure at what point a schema should've been created for the user that was added, but it is not there in either the main 'carto_db_development' database, nor the individual user database. I don't see anything that looks indicative in the create_dev_user script. Do you happen to know if that sounds like something isn't setup correctly?
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+unsubscribe@googlegroups.com.