SET version = '5', minor = '0';
# This line concludes database upgrade to version 5.0.
-# Add missing 'client-id' host identifier type.
+# Add missing 'client-id' and new 'flex-id' host identifier types.
INSERT INTO host_identifier_type VALUES (3, 'client-id');
+INSERT INTO host_identifier_type VALUES (4, 'flex-id');
# Update the schema version number
UPDATE schema_version
mysql "$@" <<EOF
-# Add missing 'client-id' host identifier type.
+# Add missing 'client-id' and new 'flex-id' host identifier types.
INSERT INTO host_identifier_type VALUES (3, 'client-id');
+INSERT INTO host_identifier_type VALUES (4, 'flex-id');
# Update the schema version number
UPDATE schema_version
-- Schema 3.0 specification ends here.
--- This is a placeholder for the changes between 3.0 and 3.1. Even if there
--- are no further changes the schema version should be set to 3.1, because
--- we have added a missing 'client-id' host reservation type entry in the
--- 3.0 -> 3.1 upgrade script. This entry had been accidentally omitted when
--- the 2.0 -> 3.0 upgrade script was created.
+-- This is a placeholder for the changes between 3.0 and 3.1. We have added a
+-- missing 'client-id' host reservation type entry that had been accidentally
+-- omitted when the 2.0 -> 3.0 upgrade script was created.
+-- Also, new flexible identifier has been added.
+INSERT INTO host_identifier_type VALUES (4, 'flex-id');
-- Set 3.1 schema version.
UPDATE schema_version
SELECT type FROM host_identifier_type WHERE type = 3
);
+-- We also add a new identifier type: flex-id.
+INSERT INTO host_identifier_type VALUES (4, 'flex-id');
+
-- Set 3.1 schema version.
UPDATE schema_version
SET version = '3', minor = '1';