From 733d18c7caaa526928accc7570bebc9bf4c9940d Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 4 Jul 2010 00:20:25 +0000 Subject: [PATCH] Update doc for create_phpclass.py --- dev/manage-code/create-file/create_file_table.sql | 2 +- dev/manage-code/create-file/create_phpclass.py | 1 + dev/manage-code/create-file/example | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 dev/manage-code/create-file/example diff --git a/dev/manage-code/create-file/create_file_table.sql b/dev/manage-code/create-file/create_file_table.sql index 18e2fcf21..b9c4dbdd7 100644 --- a/dev/manage-code/create-file/create_file_table.sql +++ b/dev/manage-code/create-file/create_file_table.sql @@ -3,5 +3,5 @@ SELECT FROM information_schema.columns WHERE - columns.table_name='table'; + columns.table_name='attr_def'; diff --git a/dev/manage-code/create-file/create_phpclass.py b/dev/manage-code/create-file/create_phpclass.py index 913087d44..0cdf1cfd5 100755 --- a/dev/manage-code/create-file/create_phpclass.py +++ b/dev/manage-code/create-file/create_phpclass.py @@ -24,6 +24,7 @@ def help(): second line table name 3rd PK type ... and after all the column names and column type (see create_file_table.sql) + see the file example """ def main(): try: diff --git a/dev/manage-code/create-file/example b/dev/manage-code/create-file/example new file mode 100644 index 000000000..ef6b9011a --- /dev/null +++ b/dev/manage-code/create-file/example @@ -0,0 +1,6 @@ +Fiche_Attr +attr_def + ad_id | integer + ad_text | text + ad_type | text +