Updating & database
How the schema works
Section titled “How the schema works”You never import schema by hand. bs_core has the migrations in bs_core/sql/ (001_core_schema.sql … 048_backpack_refresh.sql), and the list in bs_core/server/sv_migrations.lua. On start it runs every file that isn’t in the bs_migrations table yet and records it. Applied ones never run again.
So an update that brings a new table is just: update the files, restart. The console prints which migration it applied.
Some resources (bs_config, bs_guard, bs_vip, bs_factions progression) also create their own tables on start if they are missing. That’s a safety net, the migration is still the real source.
Updating the public release
Section titled “Updating the public release”Follow How to update for v1.1.0: the new resources, the voice change and migrations 045-048, plus how to keep edited scripts.
Stop the server, back up its folder and export the database with your usual database client or hosting backup service. Keep the backup outside the server folder. An update does not need a private deployment script or a fresh installation.
Your F1 profiles live in the database, they survive updates. A profile key that doesn’t exist anymore is just ignored.
Never copy cache/ between machines or versions, delete it if something looks weird after an update.
Moving to another PC
Section titled “Moving to another PC”The release package doesn’t contain the database on purpose. Back up on the old one, then on the new one create a new empty database and:
Create an empty database on the new machine and import your saved SQL backup with your database client. Keep the original backup until the new server has run correctly.
It never drops a database and asks you to type IMPORT first. Keep the original backup until the new server has run fine for a while.
Treat that .sql file as private. It has every character, inventory, faction bank and identifier.
Fresh world with txAdmin
Section titled “Fresh world with txAdmin”txadmin/recipe.yaml deploys the release plus a new empty database through txAdmin’s Server Deployer. It’s a new world, nothing from the old DB comes along. See txadmin/README.md for the zip layout.
bs19.org · Privacy · Terms · Cookie settings
Cookies and outside content
The site only needs two essential cookies to keep you logged in and protect forms. Videos and streams from YouTube and Twitch load from their servers, which can set their own cookies, so they stay off until you say yes. Nothing is pre-ticked and you can change your mind any time with "Cookie settings" at the bottom of every page. Details.
Questions about the server, the framework or the site? A real person reads this, usually within a day.