Permalink
Browse files

Unique key for machine_name added at installation.

  • Loading branch information...
1 parent 08e9703 commit 1d7b4bdbe4f695ea5064d401cb3f47b0ed3b5ca4 @mikl committed May 12, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 premium.install
View
@@ -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;

0 comments on commit 1d7b4bd

Please sign in to comment.