From: Mike Bayer Date: Mon, 12 Oct 2009 16:32:29 +0000 (+0000) Subject: fix SQL output X-Git-Tag: rel_0_6beta1~258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16f1ca427893de7c3b7bf5bb861115db9203b05;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix SQL output --- 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