EN · DE · RU · FR · ES

#1505: V8.0.8__RELEASE-MGC_additions.sql

projectforge-business/src/main/resources/flyway/migrate/hsqldb/V8.0.8__RELEASE-MGC_additions.sql Tipo: Migración SQL Flyway · Base de datos: HSQLDB · Fuente: projectforge-business/src/main/resources/flyway/migrate/hsqldb/V8.0.8__RELEASE-MGC_additions.sql 10 líneas · 9 código · 0 comentarios · 1 en blanco
Script de migración de base de datos Flyway para HSQLDB. Contiene sentencias SQL DDL/DML para la evolución del esquema.

Alteraciones de tabla

ALTER TABLE t_fibu_employee
ALTER TABLE t_fibu_employee
ALTER TABLE t_fibu_employee
ALTER TABLE t_fibu_employee
ALTER TABLE t_fibu_employee
ALTER TABLE t_fibu_employee

Contenido SQL

-- Corregir columnas en la tabla employee.
ALTER TABLE t_fibu_employee ADD COLUMN new_eintritt DATE;
UPDATE t_fibu_employee SET new_eintritt = CAST(eintritt AS DATE);
ALTER TABLE t_fibu_employee DROP COLUMN eintritt;
ALTER TABLE t_fibu_employee ALTER COLUMN new_eintritt RENAME TO eintritt;

ALTER TABLE t_fibu_employee ADD COLUMN new_austritt DATE;
UPDATE t_fibu_employee SET new_austritt = CAST(austritt AS DATE);
ALTER TABLE t_fibu_employee DROP COLUMN austritt;
ALTER TABLE t_fibu_employee ALTER COLUMN new_austritt RENAME TO austritt;

Historial Git

28efde264 Employee: weeklyWorkingHours ahora como atributo dependiente del tiempo. eintritt/austritt: timestamp -> date. Eliminar tablas DB antiguas. En la release MGC, algunas fk en la db fueron olvidadas al cambiar el tipo de int a bigint.