add multi trainings +fix path for coco retraining
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
// database.js
|
||||
const { Sequelize } = require('sequelize');
|
||||
|
||||
const sequelize = new Sequelize('myapp', 'root', 'root', {
|
||||
host: 'localhost',
|
||||
dialect: 'mysql',
|
||||
logging: false,
|
||||
});
|
||||
|
||||
module.exports = sequelize;
|
||||
@@ -1,12 +0,0 @@
|
||||
-- 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`;
|
||||
@@ -1,12 +0,0 @@
|
||||
-- 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;
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user