Compare commits
3 Commits
f285d4451d
...
mai/brunel
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf3711b2e4 | ||
|
|
5e401d2eac | ||
|
|
3f90904e0c |
@@ -13,8 +13,8 @@ func Connect(databaseURL string) (*sqlx.DB, error) {
|
|||||||
return nil, fmt.Errorf("connecting to database: %w", err)
|
return nil, fmt.Errorf("connecting to database: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set search_path so queries use kanzlai schema by default
|
// Set search_path so queries use mgmt schema by default
|
||||||
if _, err := db.Exec("SET search_path TO kanzlai, public"); err != nil {
|
if _, err := db.Exec("SET search_path TO mgmt, public"); err != nil {
|
||||||
db.Close()
|
db.Close()
|
||||||
return nil, fmt.Errorf("setting search_path: %w", err)
|
return nil, fmt.Errorf("setting search_path: %w", err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
-- Creates 1 test tenant, 5 cases with deadlines and appointments
|
-- Creates 1 test tenant, 5 cases with deadlines and appointments
|
||||||
-- Run with: psql $DATABASE_URL -f demo_data.sql
|
-- Run with: psql $DATABASE_URL -f demo_data.sql
|
||||||
|
|
||||||
SET search_path TO kanzlai, public;
|
SET search_path TO mgmt, public;
|
||||||
|
|
||||||
-- Demo tenant
|
-- Demo tenant
|
||||||
INSERT INTO tenants (id, name, slug, settings) VALUES
|
INSERT INTO tenants (id, name, slug, settings) VALUES
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
-- UPC Proceeding Timeline: Full event tree with conditional deadlines
|
-- UPC Proceeding Timeline: Full event tree with conditional deadlines
|
||||||
-- Ported from youpc.org migrations 039 + 040
|
-- Ported from youpc.org migrations 039 + 040
|
||||||
-- Run against kanzlai schema in flexsiebels Supabase instance
|
-- Run against mgmt schema in youpc.org Supabase instance
|
||||||
|
|
||||||
-- ========================================
|
-- ========================================
|
||||||
-- 1. Add is_spawn + spawn_label columns
|
-- 1. Add is_spawn + spawn_label columns
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ const inputClass =
|
|||||||
|
|
||||||
export function DeadlineCalculator() {
|
export function DeadlineCalculator() {
|
||||||
const [proceedingType, setProceedingType] = useState("");
|
const [proceedingType, setProceedingType] = useState("");
|
||||||
const [triggerDate, setTriggerDate] = useState("");
|
const [triggerDate, setTriggerDate] = useState(
|
||||||
|
new Date().toISOString().split("T")[0],
|
||||||
|
);
|
||||||
|
|
||||||
const { data: proceedingTypes, isLoading: typesLoading } = useQuery({
|
const { data: proceedingTypes, isLoading: typesLoading } = useQuery({
|
||||||
queryKey: ["proceeding-types"],
|
queryKey: ["proceeding-types"],
|
||||||
|
|||||||
Reference in New Issue
Block a user