propelorm/Propel — Issue #200: Execution of target "sql-diff-template" failed (idMethod="native" for table not specified)
Author: alecksmart
Created: 2011-11-25 11:13:20+00:00
State: open

This is a permanent bug I got from version 1.6.1 and the today's github snapshot.

Please note that both defaultIdMethod="native" and idMethod="native" are present ("database" and "table" definitions).

schema.xml:

```xml

```
table:

```xml

```

When trying to execute the migrate procedure:

```

propel > sql-diff:

[echo] +----------------------------------------------+
[echo] | |
[echo] | Generating SQL diff between the XML schemas |
[echo] | and the current database structure. |
[echo] | |
[echo] +----------------------------------------------+
[phingcall] Calling Buildfile '[... path skipped ...]/library/propel/generator/build-propel.xml' with target 'sql-diff-template'
[property] Loading [... path skipped ...]/library/propel/generator/./default.properties

propel > sql-diff-template:

[propel-sql-diff] Reading databases structure...
[propel-sql-diff] 9 tables imported from databases.
[propel-sql-diff] Loading XML schema files...
[propel-sql-diff] 9 tables found in 1 schema files.
[propel-sql-diff] Comparing models...
[propel-sql-diff] Structure of database was modified in datasource "entities": 9 modified tables
Execution of target "sql-diff-template" failed for the following reason: [... path skipped ...]/library/propel/generator/build-propel.xml:327:17: You have specified autoIncrement for column "id", but you have not specified idMethod="native" for table "content_registry_entry".
[phingcall] [... path skipped ...]/library/propel/generator/build-propel.xml:327:17: You have specified autoIncrement for column "id", but you have not specified idMethod="native" for table "content_registry_entry".
Execution of target "sql-diff" failed for the following reason: [... path skipped ...]/library/propel/generator/build-propel.xml:311:22: Execution of the target buildfile failed. Aborting.
[phing] [... path skipped ...]/library/propel/generator/build-propel.xml:311:22: Execution of the target buildfile failed. Aborting.

```