Too many problems on init and up process.Otherwise.why this command "node scripts/setup-admin-user.js" .I ask AI for reason.First, it say may be something wrong with colomn name. But after I check my AWS-database , only find nothing to fix.A long talk with GPT.None useful method to solve this. Maybe you code wrong source between migrate and creating users? I check your file "setup-admin-user"、“migrate.ts”、and other code file like "db.ts". Finally,can not find why terminal print down information.
code: 'ER_BAD_FIELD_ERROR',
errno: 1054,
sqlState: '42S22',
sqlMessage: "Unknown column 'role' in 'field list'",
sql: "insert into user (name, avatar_url, email, role) values ('admin', '', 'admin@example.com', 'admin')"
Tell me,are you run your project on windows? Or just suit for linux ???
Too many problems on init and up process.Otherwise.why this command "node scripts/setup-admin-user.js" .I ask AI for reason.First, it say may be something wrong with colomn name. But after I check my AWS-database , only find nothing to fix.A long talk with GPT.None useful method to solve this. Maybe you code wrong source between migrate and creating users? I check your file "setup-admin-user"、“migrate.ts”、and other code file like "db.ts". Finally,can not find why terminal print down information.
code: 'ER_BAD_FIELD_ERROR',
errno: 1054,
sqlState: '42S22',
sqlMessage: "Unknown column 'role' in 'field list'",
sql: "insert into
user(name,avatar_url,email,role) values ('admin', '', 'admin@example.com', 'admin')"Tell me,are you run your project on windows? Or just suit for linux ???