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 Type : Migration SQL Flyway · Base de données : HSQLDB · Source : projectforge-business/src/main/resources/flyway/migrate/hsqldb/V8.0.8__RELEASE-MGC_additions.sql 10 lignes · 9 de code · 0 commentaires · 1 vide
Script de migration de base de données Flyway pour HSQLDB. Contient des instructions SQL DDL/DML pour l'évolution du schéma.

Modifications de tables

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

Contenu SQL

-- Correction des colonnes dans la table 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;

Historique Git

28efde264 Employee : weeklyWorkingHours désormais comme attribut dépendant du temps. eintritt/austritt : timestamp -> date Suppression des anciennes tables DB. Dans la version MGC, certaines clés étrangères dans la base de données avaient été oubliées lors du changement de type de int à bigint.