A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

33 satır
647 B

  1. /*
  2. * Copyright © 2019-2020 A Bunch Tell LLC.
  3. *
  4. * This file is part of WriteFreely.
  5. *
  6. * WriteFreely is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License, included
  8. * in the LICENSE file in this source code package.
  9. */
  10. package migrations
  11. func supportActivityPubMentions(db *datastore) error {
  12. t, err := db.Begin()
  13. if err != nil {
  14. return err
  15. }
  16. _, err = t.Exec(`ALTER TABLE remoteusers ADD COLUMN handle ` + db.typeVarChar(255) + ` NULL`)
  17. if err != nil {
  18. t.Rollback()
  19. return err
  20. }
  21. err = t.Commit()
  22. if err != nil {
  23. t.Rollback()
  24. return err
  25. }
  26. return nil
  27. }