mirror of
https://github.com/writefreely/writefreely
synced 2024-09-20 13:41:54 +00:00
Make letters (v13) migration compatible with SQLite
This commit is contained in:
parent
cc9705447d
commit
221d0d7dbb
1 changed files with 8 additions and 9 deletions
|
@ -29,16 +29,15 @@ func supportLetters(db *datastore) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: fix for SQLite database
|
|
||||||
_, err = t.Exec(`CREATE TABLE emailsubscribers (
|
_, err = t.Exec(`CREATE TABLE emailsubscribers (
|
||||||
id char(8) not null,
|
id ` + db.typeChar(8) + ` not null,
|
||||||
collection_id int not null,
|
collection_id ` + db.typeInt() + ` not null,
|
||||||
user_id int null,
|
user_id ` + db.typeInt() + ` null,
|
||||||
email varchar(255) null,
|
email ` + db.typeVarChar(255) + ` null,
|
||||||
subscribed datetime not null,
|
subscribed ` + db.typeDateTime() + ` not null,
|
||||||
token char(16) not null,
|
token ` + db.typeChar(16) + ` not null,
|
||||||
confirmed tinyint(1) default 0 not null,
|
confirmed ` + db.typeBool() + ` default 0 not null,
|
||||||
allow_export tinyint(1) default 0 not null,
|
allow_export ` + db.typeBool() + ` default 0 not null,
|
||||||
constraint eu_coll_email
|
constraint eu_coll_email
|
||||||
unique (collection_id, email),
|
unique (collection_id, email),
|
||||||
constraint eu_coll_user
|
constraint eu_coll_user
|
||||||
|
|
Loading…
Reference in a new issue