training fix.add global settings

This commit is contained in:
Philipp
2025-12-02 09:55:50 +01:00
parent c3c7e042bb
commit 0e31237b79
7 changed files with 96 additions and 65 deletions

View File

@@ -0,0 +1,12 @@
-- Migration: Add width and height columns to image table
-- Date: 2025-11-27
USE myapp;
-- Add width and height columns to image table
ALTER TABLE `image`
ADD COLUMN `width` FLOAT NULL AFTER `image_path`,
ADD COLUMN `height` FLOAT NULL AFTER `width`;
-- Verify the changes
DESCRIBE `image`;

View File

@@ -0,0 +1,12 @@
-- Migration to change width and height from FLOAT to INT in image table
-- Run this after updating the Images model
-- First, backup the table (optional but recommended)
-- CREATE TABLE image_backup AS SELECT * FROM image;
-- Alter the columns to INT type
ALTER TABLE image MODIFY COLUMN width INT;
ALTER TABLE image MODIFY COLUMN height INT;
-- Verify the changes
DESCRIBE image;