Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL fields all nil using sqlite #785

Closed
kmafeni04 opened this issue Apr 28, 2024 · 0 comments
Closed

SQL fields all nil using sqlite #785

kmafeni04 opened this issue Apr 28, 2024 · 0 comments

Comments

@kmafeni04
Copy link

kmafeni04 commented Apr 28, 2024

I'm using sqlite and this is the code:

    [1] = function()
        create_table("users", {
            { "id",       types.serial },
            { "username", types.varchar },
            { "email",    types.varchar },
            { "password", types.varchar },

            "PRIMARY KEY (id)"
        })

but I get this after migrating

SQL: CREATE TABLE "users" (
  "id" nil,
  "username" nil,
  "email" nil,
  "password" nil,
  PRIMARY KEY (id)
)

These fields aren't meant to be nil, is there something I'm doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant