Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Won't Fix
-
Affects Version/s: 1.2.1
-
Fix Version/s: None
-
Component/s: Import/Export
-
Labels:None
Description
It would be nice if the generated SQL files would contain newlines ("\n") so that they are more human readable.
Especially programmes new to doctrine wants to to verify what their schema.yml produced the SQL statements they hoped for.
At least I can imagine no case where it would be a benefit if every table is just one big line.
If you are not motivated to change this yourself but would be willing to accept a proper patch, please let me know.
bye,
christian
Example for the current output:
CREATE TABLE phonenumber (id BIGINT AUTO_INCREMENT, user_id BIGINT, phonenumber VARCHAR(255), primary_num TINYINT(1), INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB;
Example of what I would like to see:
CREATE TABLE phonenumber (
id BIGINT AUTO_INCREMENT,
user_id BIGINT,
phonenumber VARCHAR(255),
primary_num TINYINT(1),
INDEX user_id_idx (user_id),
PRIMARY KEY(id)
) ENGINE = INNODB;
(as you can see, it's pretty simple, just add a \n after the opening "(" and then after each column definition.)
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |