Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unique key for machine_name added at installation.

  • Loading branch information...
commit 1d7b4bdbe4f695ea5064d401cb3f47b0ed3b5ca4 1 parent 08e9703
@mikl authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 premium.install
View
5 premium.install
@@ -1,4 +1,8 @@
<?php
+/**
+ * @file
+ * Installation and upgrading code for Premium Content module.
+ */
/**
* Implementation of hook_install().
@@ -115,6 +119,7 @@ function premium_schema() {
),
),
'primary key' => array('level_id'),
+ 'unique keys' => array('machine_name' => array('machine_name')),
);
return $schema;
Please sign in to comment.
Something went wrong with that request. Please try again.