Skip to content
Snippets Groups Projects
Commit cc36578a authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Bring unl_schema() up to date with latest unl_sites table changes so that a...

Bring unl_schema() up to date with latest unl_sites table changes so that a fresh drupal install will work; Fix unl_update_ functions by removing multiple adds of clean_url column which causes update to fail

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@224 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent bd695fec
No related branches found
No related tags found
No related merge requests found
......@@ -10,12 +10,6 @@ function unl_schema() {
'unsigned' => TRUE,
'not null' => TRUE,
),
'site_path_prefix' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'site_path' => array(
'type' => 'varchar',
'length' => 255,
......@@ -37,18 +31,26 @@ function unl_schema() {
'type' => 'int',
'not null' => TRUE,
'default' => 1,
),
'db_prefix' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
)
),
'primary key' => array('site_id'),
'unique keys' => array(
'sub_site' => array('site_path_prefix', 'site_path'),
'sub_site' => array('site_path'),
)
);
return $schema;
}
/**
* Updates prior to upgrading to unl module 7.x-1.0
*/
function unl_update_7100() {
$table = array(
'description' => 'Table of tables to be programatically created',
......@@ -58,6 +60,12 @@ function unl_update_7100() {
'unsigned' => TRUE,
'not null' => TRUE,
),
'site_path_prefix' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'site_path' => array(
'type' => 'varchar',
'length' => 255,
......@@ -74,17 +82,6 @@ function unl_update_7100() {
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'clean_url' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 1,
),
'db_prefix' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
)
),
'primary key' => array('site_id'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment