-- Venue Events Manager — Database update v1.000.011
-- Quote/Invoice Spaces: choose layout from space layouts dropdown with capacity display.
-- No schema changes. Import via phpMyAdmin → Import (MySQL / MariaDB).

SET NAMES utf8mb4;

INSERT INTO `settings` (`key`, `value`, `is_encrypted`, `created_at`, `updated_at`)
VALUES ('schema_version', '1.000.011', 0, NOW(), NOW())
ON DUPLICATE KEY UPDATE `value` = '1.000.011', `updated_at` = NOW();

INSERT INTO `settings` (`key`, `value`, `is_encrypted`, `created_at`, `updated_at`)
VALUES ('app_version', '1.000.011', 0, NOW(), NOW())
ON DUPLICATE KEY UPDATE `value` = '1.000.011', `updated_at` = NOW();

INSERT INTO `settings` (`key`, `value`, `is_encrypted`, `created_at`, `updated_at`)
VALUES (
  'release_notes',
  'v1.000.011: Quotation/Invoice Spaces section includes Space Layout dropdown per chosen space with layout capacity shown; layout appears on quote/invoice/booking views.',
  0, NOW(), NOW()
)
ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `updated_at` = NOW();

SELECT 'Update v1.000.011 applied successfully' AS result;
