GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Paweł Świątkowski (katafrakt@genserver.social)'s status on Tuesday, 10-Oct-2023 10:18:36 JSTPaweł ŚwiątkowskiPaweł Świątkowski
    in reply to
    • clacke
    • Pete Corey
    @clacke @petecorey I don't have any principles formulated, but I usually just model data migrations as tasks (rake, mix, custom built triggered from admin panel...).

    Even with regular migrations during the deploy you have a timeframe when the migration is already run, but you're still serving old code (with large codebases it's non-negligible amount of time). So I have a rule that migrations need to be compatible with old and new code anyway.

    So you
    1. Deploy schema migration
    2. Run data migration
    3. Deploy new code that relies on migrated data

    Of course I can imagine situations where this does not cut it, but it works most of the time for me.
    In conversationTuesday, 10-Oct-2023 10:18:36 JST from genserver.socialpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.