mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 19:29:54 +02:00
Improve NocoDB configuration handling for production deployments
Update client and server logic to gracefully handle missing NocoDB configurations, providing more informative error messages and ensuring optional NocoDB fields are handled correctly. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c52a701b-4841-4d00-b8cf-5a41c12abdf3 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/c52a701b-4841-4d00-b8cf-5a41c12abdf3/3uCfEKb
This commit is contained in:
1 parent
e6b09fc9d3
commit
5a16936591
6 files changed
+219
-25
No files matched your search
+6
-6
@@ -143,16 +143,16 @@ export const publicityParticipations = pgTable("publicity_participations", {
|
||||
|
||||
|
||||
|
||||
// NocoDB configuration globale (une seule instance NocoDB partagée)
|
||||
// NocoDB configuration globale - Structure correspondant à la production
|
||||
export const nocodbConfig = pgTable("nocodb_config", {
|
||||
id: serial("id").primaryKey(),
|
||||
name: varchar("name").notNull(), // Nom de la configuration
|
||||
baseUrl: varchar("base_url").notNull(), // URL de l'instance NocoDB
|
||||
projectId: varchar("project_id").notNull(), // NocoDB Project ID
|
||||
apiToken: varchar("api_token").notNull(), // Personal API Token
|
||||
name: varchar("name", { length: 255 }).notNull(), // Nom de la configuration
|
||||
baseUrl: varchar("base_url", { length: 255 }).notNull(), // URL de l'instance NocoDB
|
||||
projectId: varchar("project_id", { length: 255 }).notNull(), // NocoDB Project ID
|
||||
apiToken: varchar("api_token", { length: 255 }).notNull(), // Personal API Token
|
||||
description: text("description"), // Description de la configuration
|
||||
isActive: boolean("is_active").default(true), // Configuration active ou non
|
||||
createdBy: varchar("created_by").notNull(),
|
||||
createdBy: varchar("created_by", { length: 255 }), // Créateur (nullable en production)
|
||||
createdAt: timestamp("created_at").defaultNow(),
|
||||
updatedAt: timestamp("updated_at").defaultNow(),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user