rvr-nextgen/database/migrations/structure/20230428_1826_community_main_currency.sql
Pőcze Bence e0ea18a6d0
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
RVRNEXT-5 migration for main_currency_id
2023-04-28 21:06:36 +02:00

5 lines
240 B
SQL

ALTER TABLE `communities`
ADD `main_currency_id` int(10) unsigned DEFAULT NULL,
ADD KEY `main_currency_id` (`main_currency_id`),
ADD CONSTRAINT `communities_main_currency_id` FOREIGN KEY (`main_currency_id`) REFERENCES `currencies` (`id`);