- New models: WarrantyModel, WalletModel, SystemConfigModel - New schemas: WarrantySchema, RefundSchema, SystemConfig, CrmTaskCalendar, NotificationTemplate, NotificationGateway, RepairErp, ReviewModeration, InventoryPos, MultiDashboard, BillingFinance - New services: WarrantyService, RefundService, CrmService, CrmTaskCalendarService, DeliveryService, EmailTemplateService, InventoryPosService, MultiDashboardService, NotificationGatewayService, RepairErpService, ReviewModerationService, SystemConfigService, TemplateService, CreditService - Updated routers: AdminOrder, BillingFinance, Cart, Catalog, Checkout, Crm, InventoryPos, NotificationGateway, RolePermission, ServiceJob, Settings, Storefront, UserCreation - Updated models: Inventory, Notification, Order, Product, Service, Setting, SystemConfig, User - Updated core: database init, invoice generator, main app - Added WarrantyRouter with full CRUD and claim flow
9 lines
529 B
Python
9 lines
529 B
Python
from sqlalchemy import create_engine, text
|
|
|
|
engine = create_engine("mysql+pymysql://root:NewStrongPassword123!@127.0.0.1:3306/ifixkart_core")
|
|
with engine.begin() as conn:
|
|
conn.execute(text("ALTER TABLE service_jobs MODIFY COLUMN service_type_id VARCHAR(64);"))
|
|
conn.execute(text("ALTER TABLE service_jobs MODIFY COLUMN repair_service_id VARCHAR(64);"))
|
|
conn.execute(text("ALTER TABLE service_jobs MODIFY COLUMN repair_variant_id VARCHAR(64);"))
|
|
|
|
print("Successfully altered service_jobs columns to VARCHAR(64).")
|