Files
thetool/db
Spi b821c9f2c4 Zeiterfassung Update Monatsabschluss/Verrechnung
* Berechnungen aller Ü50/Ü100/M25 sowie Steuerfrei und Pflichtig
* Transfer Mehrstunden auf Ü50/Ü100/M25
* Anpassungen der Exports LZs MehrstundenGL ÜGL Ü50,Ü100,M25
* Autoberechnung der anteiligen Mehrstunden
* automatische Ü100 Rausrechnung laut gesetzlichen Vorgaben

Bugfixes:
* Start und Enddatum eines Mitarbeiters werden nun überall berücksichtigt.

* Textuelle Bereinigungen
* Umfangreiche Testscenarien Verechnung/Exports
2024-05-05 12:36:47 +02:00
..
2023-09-06 09:55:08 +02:00

TheTool Database Migrations

Introduction

This project utilizes Phinx for Database Migrations

Table of Contents

Initializing

To start using Phinx for database migrations, you first need to initialize Phinx and set up your configuration. Run the following command in your project directory:

vendor/bin/phinx init

After initialization, add two environments: thetool and thetool_addressdb to your Phinx configuration to ensure it functions correctly with TheTool's database setup.

Usage

Creating Migrations

To create a new database migration, use the command below

Custom Template -t : db/template/migrate.up_down.template
Replace {MIGRATION_NAME} : Example AddNewTable

vendor/bin/phinx create {MIGRATION_NAME} -t db/template/migrate.up_down.template

A new migration file will be created in db/migrations

Migrating / Rolling Back

Use the following command to apply the migrations.

Use -t={TARGET_TIMESTAMP} to go to a specific migration target
Use --dry-run to simulate the Migratio

vendor/bin/phinx migrate [-t={TARGET_TIMESTAMP}] [--dry-run]

Use the following command to undo the migrations.

vendor/bin/phinx rollback [-t={TARGET_TIMESTAMP}] [--dry-run]

Documentation

For more detailed information on using Phinx, visit the Phinx documentation .