From b16f1ca427893de7c3b7bf5bb861115db9203b05 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 12 Oct 2009 16:32:29 +0000 Subject: [PATCH] fix SQL output --- doc/build/metadata.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/build/metadata.rst b/doc/build/metadata.rst index 996fecdd0a..078162f464 100644 --- a/doc/build/metadata.rst +++ b/doc/build/metadata.rst @@ -779,11 +779,12 @@ When using a callable, the callable is passed the ddl element, event name, the ` PRIMARY KEY (user_id) ) - select relname from pg_class where relname='users' + select conname from pg_constraint where conname='cst_user_name_length' ALTER TABLE users ADD CONSTRAINT cst_user_name_length CHECK (length(user_name) >= 8){stop} {sql}users.drop(engine) - select relname from pg_class where relname='users' + select conname from pg_constraint where conname='cst_user_name_length' + ALTER TABLE users DROP CONSTRAINT cst_user_name_length DROP TABLE users{stop} Custom DDL -- 2.47.2