0 Followers
0 Following
0 Posts

How to "upgrade" from Gitea to Forgejo (not for the faint of heart!)

https://lemmy.world/post/44345452

How to "upgrade" from Gitea to Forgejo (not for the faint of heart!) - Lemmy.World

Here’s the background: I’d been using Gitea for open source project hosting for a quite a while. So when the Forgejo fork started up, I thought to myself: Eh, I’ll see how that all unfolds and maybe look into it at some point. After all, Forgejo is a soft fork, so I can just switch over whenever. But then Forgejo became a hard fork while I was busy with other stuff, and before I knew it, It seemed too late to switch unless I wanted to lose all my tickets and stuff. Then I saw this post [https://lemmy.world/post/44134491] and read this background [https://www.reddit.com/r/Gitea/comments/yj6ndx/gitea_controversy_timeline/] and decided it was time for me to switch to Forgejo, hard fork be damned. But I’m very stubborn, and I still wanted to keep all of my Gitea data intact. So here’s what I did, and what you could do too: Step one: Create a SQL “migration” that downgrades the Gitea database from the modern version you’re using to the last version that Forgejo supports upgrading [https://forgejo.org/docs/latest/admin/upgrade/from-gitea/], Gitea 1.22.6, from back when Forgejo was still a soft-ish fork. That means you’re effectively rolling back each migration from Gitea 1.25 [https://github.com/go-gitea/gitea/tree/main/models/migrations/v1_25] all the way through 1.24 [https://github.com/go-gitea/gitea/tree/main/models/migrations/v1_24] and 1.23 [https://github.com/go-gitea/gitea/tree/main/models/migrations/v1_23]. When I did this, I used an LLM (specifically MiniMax with OpenCode) to generate the reverse mega-migration, feeding it this very outdated starting point [https://gist.github.com/hinrikus/918a1d3ccb8daa22f5c2fa4b0ee0048f] as inspiration. But I totally understand if not everyone is comfortable with using AI. In fact, I really wasn’t either, but I figured this is a mostly mechanical one-off. If you don’t want to use AI, you can generate the reverse migration manually by combing through the migrations linked above. I did find three mistakes the LLM made: 1. An off-by-one error in UPDATE version ... because the value should be the last migration number (298 in this case) plus one, 2. Some of the steps it generated to back out an individual migration were out of order, e.g. dropping the issue_pin table before copying data out of it, and 3. It apparently missed making one particular column (type in the review table) into an int instead of a varchar. Once I fixed these issues (well, the ones I found ahead of time instead of after the fact), the mega-migration was ready to go. (I’m not including the mega-migration here, because even if it worked for me, I don’t want to be responsible for people fucking up their systems if it doesn’t work for them. I’d much rather people be responsible for fucking up their own systems.) Step two: Backup your Gitea database and files!!! Step three: Stop Gitea and run the mega-rollback-migration against your Gitea database. This effectively downgrades the database to Gitea 1.22.6. You can optionally then deploy the Gitea 1.22.6 binary or container and start it up to poke around the Gitea web UI and verify that the downgrade worked. Then stop Gitea again. Step four: Replace the Gitea binary or container with the last release of Forgejo to support upgrades from Gitea, Forgejo 10.0.3. Start Forgejo and try out the web UI to make sure it’s working. Step five: Upgrade your Forgejo binary or container to the latest release of Forgejo, 14.0.3 at the time of this writing. Restart Forgejo and hopefully enjoy your newly “upgraded” instance, complete with all of your repos and ticket history!

Katie Wilson poised to be Seattle's first Millennial mayor

Katie Wilson looks poised to become Seattle’s next mayor.

Katie Wilson Is Seattle’s Next Mayor

https://lemmy.world/post/38722741

Katie Wilson Is Seattle’s Next Mayor - Lemmy.World

Lemmy

Fight ICE with your 3D printer

https://lemmy.world/post/37732606

Fight ICE with your 3D printer - Lemmy.World

Got an idling 3D printer? Want to do something in the fight against ICE, but don’t know how to get involved? You can 3D print whistles for folks in communities that may be targeted by ICE! [https://lemmy.world/pictrs/image/edc50c86-4c4a-43c2-978a-ddafd7d8aefd.jpeg] Why whistles? * Instant alert system * Simple, cheap, effective * Noise = visibility * Turns silence into community action * The sound gathers a crowd whenever and wherever ICE shows up * Already being used to great effect in cities like Chicago Once you 3D print some whistles, you can either drop them off with us, or we can send someone to pick them up from you. You don’t even have to leave your home to contribute! No 3D printer? Still lots of ways to help out: Assemble whistle kits, contribute money, translate materials, spread the word, etc. MORE INFO including STL files to print: https://linktr.ee/wa.whistles [https://linktr.ee/wa.whistles] And you don’t need to join anything to get started. Just download and print!

More details: seattleindivisible.com/events/nokingsoct18/

FAQ:

Q: So where is the march to/from?

A: It’s a loop march, leaves at 1 p.m. after the rally (which starts at noon). The march starts at Seattle Center and ends at Seattle Center

Q: Is this going to be … a big one?

A: Yes, hundreds of thousands of people in Seattle, millions across the U.S. Likely larger than the last No Kings protest.

Q: What can I do besides just waving a side and marching around?

A: There will be folks from local resistance organizations at tables before/after the march, ready to give you the information you need to join and take action.

Seattle No Kings- Oct 18 - Seattle Indivisible

Fighting Dictatorship Together Mass Rally and March 12-4 PM Oct. 18thSeattle Center Donate Help us Cover Expenses for Sound Systems and Porta Potties and more. Volunteer Planning, Event Day help, And more: Fill out our Volunteer Form Posters Emails Outreach Toolkits Digital Assets Everything you need to spread the word. Quick Jump links #Message#Coalition-Orgs#Safety-Statement#accessibility#transit#get-involved Mobilize […]

Seattle Indivisible

Map for No Kings Mass Rally and March Oct. 18th @ Seattle Center

https://lemmy.world/post/37490007

No Kings Mass Rally and March Oct. 18th @ Seattle Center

https://lemmy.world/post/36621225

LA Ice protests spurred US military to identify ‘hotels to avoid’ due to ‘harassment’

https://lemmy.world/post/34776388

LA Ice protests spurred US military to identify ‘hotels to avoid’ due to ‘harassment’ - Lemmy.World

When Donald Trump’s administration escalated immigration raids in Los Angeles earlier this summer, protest organizers responded with actions staged in an unusual setting: the hotels where immigration officers were staying. Protests took place at several southern California hotels where Immigration and Customs Enforcement (Ice) and Customs and Border Protection (CBP) agents had been spotted. Some activists launched “No sleep for Ice” rallies, with chants and music blaring through the night, in hopes of pressuring the hotels to kick agents out.

Target CEO steps down as company faces weak sales and customer boycott

https://lemmy.world/post/34736866

Target CEO steps down as company faces weak sales and customer boycott - Lemmy.World

Brian Cornell to be replaced next year as retailer navigates boycott over its scaling back of DEI initiatives The CEO of Target is stepping down, as the embattled retail giant seeks to turn around its fortunes amid an ongoing customer boycott over its scaling back of diversity, equity and inclusion (DEI) initiatives. Brian Cornell will be replaced next year by Michael Fiddelke, Target’s chief operating officer, the company said on Wednesday.

Target CEO steps down as company faces weak sales and customer boycott

https://lemmy.world/post/34733886