Steuerkram/migrations/030_bookings_asset_id.sql

6 lines
285 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Migration 030: asset_id in bookings – Verknüpfung zur Anlagegut-Tabelle
ALTER TABLE bookings
ADD COLUMN asset_id INT UNSIGNED NULL
COMMENT 'FK auf assets – bei Buchungen auf Anlagevermögenskonten'
AFTER beleg_id,
ADD KEY idx_bookings_asset (asset_id);