Skip to content

Diesel migration run will fail with sqlite #11

Open
@abariatti

Description

@abariatti

On the up.sql script that is used as a first migration.

This: created_at TIMESTAMP NOT NULL DEFAULT NOW(), fails when using sqlite as a database.

One way to solve it is to replace it with: created_at TIMESTAMP NOT NULL DEFAULT (strftime('%s','now')),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions