summaryrefslogtreecommitdiffstats
path: root/schema/pgsql-migrations/upgrade_103.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema/pgsql-migrations/upgrade_103.sql')
-rw-r--r--schema/pgsql-migrations/upgrade_103.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/schema/pgsql-migrations/upgrade_103.sql b/schema/pgsql-migrations/upgrade_103.sql
new file mode 100644
index 0000000..ac001bf
--- /dev/null
+++ b/schema/pgsql-migrations/upgrade_103.sql
@@ -0,0 +1,11 @@
+UPDATE icinga_command_argument
+ SET
+ argument_name = '(no key)',
+ skip_key = 'y'
+ WHERE argument_name is null;
+
+ALTER TABLE icinga_command_argument ALTER COLUMN argument_name SET NOT NULL;
+
+INSERT INTO director_schema_migration
+ (schema_version, migration_time)
+ VALUES (103, NOW());