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 +