Skip to content

Problem on "node scripts/setup-admin-user.js" #4

@XingyuTan

Description

@XingyuTan

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 ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions