Commit Graph

22 Commits

Author SHA1 Message Date
1f1540d7e0 Use plain DB connection for migrations
Add ConnectPlain to open the DB without the custom search_path and
switch migration and CLI flows to run on that plain connection.
Wrap multi-statement goose migrations with StatementBegin/End to
ensure statements are executed atomically. Move Stripe price outbox
seeding into a dedicated stripe migration.
2026-04-05 18:25:05 -05:00
7ef1d32529 Stripe subcription creation 2026-04-05 02:00:07 -05:00
3d602c0601 Add billing accounts and Stripe customer sync 2026-04-04 04:08:23 -05:00
3aad9268df Stripe Billing Plumbing 2026-04-03 19:25:24 -05:00
cd232130f2 Introduce per-module PostgreSQL schemas 2026-04-03 03:27:48 -05:00
fb02411f35 Introduce DB schema separation (core and fedwiki)
Add a goose migration to create core and fedwiki schemas and move
existing
domain tables using ALTER TABLE IF EXISTS. Set connection search_path to
"core, public" after successful DB ping. Update FedWiki SQL and
sqlc.yaml to
use fedwiki.sites and include db migrations for schema awareness. Add
design
docs, specs, and tasks for schema-namespacing and the migration plan.
2026-03-30 15:16:43 -05:00
15e1a59fe7 Introduce entitlement sets and migrations
Add entitlement_sets and entitlement_set_rules with seed data and a
migration that backfills products, grants, and pool_provisions, then
removes product_entitlement_rules. Update Go models, sqlc queries,
materialization, and grant/provision flows to use entitlement_set_id.
Fix assembleMigrations to assign stable per-module numeric namespaces.
Move DB docs to docs/database-management.md and add design/specs/tests.
2026-03-26 18:19:19 -05:00
6330ae7a42 Grants management! 2026-03-24 17:35:14 -05:00
f737dd0314 Identity and organization modules. 2026-03-23 17:28:14 -05:00
2d579b377c Move from sqlite to postgres. 2026-02-02 22:19:16 -06:00
1860ec6068 feat: Implement operator dashboard with user, site, and payment management views. 2026-01-17 15:56:22 -06:00
b1282c7488 Make site ownership work correctly for fucks sake. 2026-01-01 22:07:11 -06:00
c07487e324 Implement FedWiki site synchronization workflow and related configurations 2025-12-29 19:24:52 -06:00
74002e424f Rough FedWiki Site management through temporal workflows! 2025-12-18 01:05:55 -06:00
5efa9ba71a database creation was acting weird. Now works fine? 2025-12-14 05:01:03 -06:00
fa5be206cb Added migration mgmt with goose. 2025-06-04 02:36:09 -05:00
9e59d05efe Remove excess comments. 2025-06-03 20:27:03 -05:00
f557d6141f Add retry logic for database operations and enhance DBConfig with retry parameters 2025-06-03 20:20:17 -05:00
6ac0d5e256 Refactor database initialization to use a configuration struct for improved connection management 2025-06-03 19:32:26 -05:00
a7d3822f94 Implement database integration with SQLite and refactor user handling for OIDC authentication 2025-06-02 19:35:11 -05:00
77b2e6c24e Refactor SQL queries and schema to use OIDC subject instead of Keycloak ID for user identification 2025-06-01 18:10:17 -05:00
d2162067ab Add SQL queries and schema for users, sites, and payments 2025-05-31 23:40:33 -05:00