You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem:
Hi
I'm having difficulties with letting typeorm create my database.
This keeps coming up "ER_CANT_REMOVE_ALL_FIELDS: You can't delete all columns with ALTER TABLE; use DROP TABLE instead".
I did some digging and found a the "dropbeforeSync" parameter in Connection.synchronize method which was always false. I added a line of code into node_modules/typeorm/browser/Connection.js that set that bastard to true. Now I'm able to create all tables and everything works fine 👍
My question is how do i come about to setting this to true without needing to modify
The text was updated successfully, but these errors were encountered:
CREATE TABLE measurement(
ID INT AUTO_INCREMENT NOT NULL ,
NAME VARCHAR(100),
PRIMARY KEY(ID)
);
This is the table definition that was being "ALTERED" and resulted in an exception.
Issue type:
[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[x]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
websql
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
Hi
I'm having difficulties with letting typeorm create my database.
This keeps coming up "ER_CANT_REMOVE_ALL_FIELDS: You can't delete all columns with ALTER TABLE; use DROP TABLE instead".
I did some digging and found a the "dropbeforeSync" parameter in Connection.synchronize method which was always false. I added a line of code into node_modules/typeorm/browser/Connection.js that set that bastard to true. Now I'm able to create all tables and everything works fine 👍
My question is how do i come about to setting this to true without needing to modify
The text was updated successfully, but these errors were encountered: