only blob local files
This commit is contained in:
parent
33f04efd9a
commit
5c5676b14f
|
@ -213,7 +213,7 @@ func upgradedb() {
|
||||||
doordie(db, "create index idx_filesxid on filemeta(xid)")
|
doordie(db, "create index idx_filesxid on filemeta(xid)")
|
||||||
doordie(db, "create index idx_filesurl on filemeta(url)")
|
doordie(db, "create index idx_filesurl on filemeta(url)")
|
||||||
|
|
||||||
rows, err := db.Query("select xid, media, content from files")
|
rows, err := db.Query("select xid, media, content from files where local = 1")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue