[Jifty-commit] r2751 - in jifty/branches/template-declare: .
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Feb 4 05:35:33 EST 2007
Author: gugod
Date: Sun Feb 4 05:35:32 2007
New Revision: 2751
Modified:
jifty/branches/template-declare/ (props changed)
jifty/branches/template-declare/lib/Jifty/Script/Schema.pm
Log:
r4312 at GOP (orig r2750): bartb | 2007-02-04 06:27:45 +0800
update docs about SchemaCheck
Modified: jifty/branches/template-declare/lib/Jifty/Script/Schema.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Script/Schema.pm (original)
+++ jifty/branches/template-declare/lib/Jifty/Script/Schema.pm Sun Feb 4 05:35:32 2007
@@ -546,6 +546,7 @@
--setup Upgrade or install the database, creating it if need be
--create-database Only creates the database
--drop-database Drops the database
+ --ignore-reserved-words Ignore any SQL reserved words in schema definition
--help brief help message
--man full documentation
@@ -579,6 +580,11 @@
assumed if the database does not exist, or the database version is not
the same as the application's version.
+=item B<--ignore-reserved-words>
+
+Ignore any SQL reserved words used in table or column deffinitions, if
+this option is not used and a reserved word is found it will cause an error.
+
=item B<--help>
Print a brief help message and exits.
@@ -602,6 +608,13 @@
I<ProjectRoot>C</etc/config.yml>, because the SQL generated may depend
on the database type.)
+By default checks for SQL reserved words in your table names and
+column definitions, throwing an error if any are found.
+
+If you want to permanently turn this behaviour off you can set
+CheckSchema to 0 in the database section of your applications config
+file.
+
=head1 BUGS
Due to limitations of L<DBIx::DBSchema>, this probably only works with
More information about the Jifty-commit
mailing list