Do not allow cartodbfying tables while no user quota is set

Closes #17
Updates tests
This commit is contained in:
Sandro Santilli
2014-05-12 13:07:47 +02:00
parent e6b02de9aa
commit f98071cdac
7 changed files with 28 additions and 3 deletions

View File

@@ -40,6 +40,13 @@ DECLARE
exists_geom_cols BOOLEAN[];
BEGIN
-- TODO: Check that user quota is set ?
BEGIN
PERFORM public._CDB_UserQuotaInBytes();
EXCEPTION WHEN undefined_function THEN
RAISE EXCEPTION 'Please set user quota before cartodbfying tables.';
END;
-- Drop cartodb triggers (might prevent changing columns)
-- "track_updates"