MCPcopy Index your code
hub / github.com/writefreely/writefreely / supportPostSignatures

Function supportPostSignatures

migrations/v10.go:13–33  ·  view source on GitHub ↗
(db *datastore)

Source from the content-addressed store, hash-verified

11package migrations
12
13func supportPostSignatures(db *datastore) error {
14 t, err := db.Begin()
15 if err != nil {
16 t.Rollback()
17 return err
18 }
19
20 _, err = t.Exec(`ALTER TABLE collections ADD COLUMN post_signature ` + db.typeText() + db.collateMultiByte() + ` NULL` + db.after("script"))
21 if err != nil {
22 t.Rollback()
23 return err
24 }
25
26 err = t.Commit()
27 if err != nil {
28 t.Rollback()
29 return err
30 }
31
32 return nil
33}

Callers

nothing calls this directly

Calls 3

typeTextMethod · 0.80
collateMultiByteMethod · 0.80
afterMethod · 0.80

Tested by

no test coverage detected