Advertisement
fedorm

fedorm

Aug 9th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.96 KB | None | 0 0
  1. -- Добавление процессинга Подарочные карты ЦФТ
  2. INSERT INTO service_type (id, name) SELECT NEXTVAL('hibernate_sequence'), 'giftcards' WHERE NOT EXISTS (SELECT 1 FROM service_type WHERE name = 'giftcards');
  3. INSERT INTO service_provider (id, DELETED, name, registered_name, service_type) VALUES (NEXTVAL('hibernate_sequence'), FALSE, 'CFTGiftCards', 'Подарочные карты ЦФТ', (SELECT id FROM service_type WHERE name LIKE 'giftcards'));
  4.  
  5. -- Добавление префиксов для Подарочных карт ЦФТ
  6. INSERT INTO service_provider_settings (id, name, VALUE, provider) VALUES (NEXTVAL('hibernate_sequence'), 'barCodePrefixes', '778,777,776', (SELECT id FROM service_provider WHERE name LIKE 'CFTGiftCards'));
  7. INSERT INTO service_provider_settings (id, name, VALUE, provider) VALUES (NEXTVAL('hibernate_sequence'), 'cardPrefixes', '778,777,776', (SELECT id FROM service_provider WHERE name LIKE 'CFTGiftCards'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement