0

我正在使用 luminus 用 sqlite 构建网页。当我尝试迁移(lein run migrate)时,我收到以下消息:

batch entry 0: [SQLITE_ERROR] SQL error or missing database (near "auto_increment": syntax error)

我的 dev-config.edn:

;; WARNING
;; The dev-config.edn file is used for local environment variables, such as database credentials.
;; This file is listed in .gitignore and will be excluded from version control by Git.

{:dev true
 :port 3000
 ;; when :nrepl-port is set the application starts the nREPL server on load
 :nrepl-port 7000
 
 :database-url "jdbc:sqlite:kammem_dev.db"}

和我的迁移文件:

create table adress
(id integer primary key auto_increment,
gata varchar(30),
nummer integer,
stad varchar(30),
postn integer,
land varchar(30));

create table foreningar
(id integer promary key auto_increment,
namn varchar(30),
ordf varchar(30),
kassor varchar(30),
resten varchar(30));

create table forbund
(id integer promary key auto_increment,
namn varchar(30));

有什么建议么?

4

0 回答 0