idk
This commit is contained in:
1 parent
e68d357177
commit
3e3382df57
65 files changed
+1836
-42
No files matched your search
@@ -0,0 +1,9 @@
|
||||
-- ─── horario.hora_inicio: varchar(15) → TIME (O3) ──────────────────────────
|
||||
-- The column already holds time-of-day strings ("HH:MM") and the app reads it
|
||||
-- with TIME_FORMAT(hora_inicio, '%H:%i'), so it's semantically a time. Storing
|
||||
-- it as TIME makes ordering/comparison correct and matches hora_fim (already
|
||||
-- TIME). Existing "HH:MM" values cast cleanly. If any non-time legacy value
|
||||
-- exists this ALTER will fail under strict mode — fix that row, then re-run.
|
||||
|
||||
ALTER TABLE `horario`
|
||||
MODIFY `hora_inicio` TIME NOT NULL;
|
||||
Reference in new issue
Block a user