qp@int:/var/lib/aolserver/qp/packages/myfirstpackage/sql/postgresql$ psql -f myfirstpackage-drop.sql content_folder__unregister_content_type
-----------------------------------------
0
(1 row)
psql:myfirstpackage-drop.sql:12: NOTICE: function mfp_notes_f(mfp_notesi) depends on type mfp_notesi
CONTEXT: SQL statement "drop view mfp_notesi"
PL/pgSQL function "content_type__drop_type" line 90 at execute statement
psql:myfirstpackage-drop.sql:12: ERROR: cannot drop view mfp_notesi because other objects depend on it
HINT: Use DROP ... CASCADE to drop the dependent objects too.
CONTEXT: SQL statement "drop view mfp_notesi"
PL/pgSQL function "content_type__drop_type" line 90 at execute statement
Then, I got the following error when I tried to recreate the database:
ERROR: duplicate key violates unique constraint "acs_object_types_pk"
CONTEXT: SQL statement "insert into acs_object_types (object_type, pretty_name, pretty_plural, supertype, table_name, id_column, abstract_p, type_extension_tab le, package_name, name_method) values ( $1 , $2 , $3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 )"
PL/pgSQL function "acs_object_type__create_type" line 37 at SQL statement
SQL statement "SELECT acs_object_type__create_type ( $1 , $2 , $3 , $4 , $ 5 , $6 , null, 'f', null, $7 )"
PL/pgSQL function "content_type__create_type" line 41 at perform content_folder__register_content_type
I uninstalled the package from the package manager, then reinstalled it but still got the same errors. I'm not sure what went wrong, maybe a typo? (Again, argh). Since I don't have any data yet, is there any way to purge it altogether and clean out any problematic catalog entries? I'd even be content if I could purge everything under $OPENACS_SERVICE_NAME and resinstall openACS without having to start at the very beginning (Postgres) again.
Sorry for all the beginner's posts... Hopefully will get going on the learning curve...
Rick
Request notifications