-- This line starts database upgrade to version 3.0
--- This line adds auth_key column into host reservation table
-ALTER TABLE host_reservations ADD auth_key text;
-
-- Add a column holding leases for user context.
ALTER TABLE lease4 ADD user_context text;
ALTER TABLE lease6 ADD user_context text;
-- Create search index for logs table
CREATE INDEX IF NOT EXISTS logsindex ON logs (address);
--- Add new field.
+-- This line adds auth_key column into host reservation table
ALTER TABLE host_reservations ADD auth_key text;
-- Cql requires primary keys in the WHERE here.
DELETE FROM schema_version WHERE version=2;
INSERT INTO schema_version (version, minor) VALUES(3, 0);
->>>>>>> [lib] Address review comments for #83
+
-- This line concludes database upgrade to version 3.0
# This line concludes database upgrade to version 6.0.
-#add auth key in host tables
-ALTER TABLE hosts
- ADD COLUMN auth_key VARCHAR(16) NULL;
-
# Add user context into tables holding leases
ALTER TABLE lease4 ADD COLUMN user_context TEXT NULL;
ALTER TABLE lease6 ADD COLUMN user_context TEXT NULL;