diff options
author | Prashant P. Shah | 2012-05-29 11:39:37 +0530 |
---|---|---|
committer | Prashant P. Shah | 2012-05-29 11:39:37 +0530 |
commit | c1f99140690e298d4c23ef0f972c85a37e68a427 (patch) | |
tree | f97cb76d2e6ca22c079aad47f7e9fbdfeb1f580e /lab_migration.install | |
parent | ee732ad29657ee92e295b70276b9583d930cf59a (diff) | |
download | scilab_lab_migration-c1f99140690e298d4c23ef0f972c85a37e68a427.tar.gz scilab_lab_migration-c1f99140690e298d4c23ef0f972c85a37e68a427.tar.bz2 scilab_lab_migration-c1f99140690e298d4c23ef0f972c85a37e68a427.zip |
adds automatic folder creation during installation
Signed-off-by: Prashant P. Shah <pshah.mumbai@gmail.com>
Diffstat (limited to 'lab_migration.install')
-rwxr-xr-x | lab_migration.install | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/lab_migration.install b/lab_migration.install index 8bdad94..6589a42 100755 --- a/lab_migration.install +++ b/lab_migration.install @@ -13,6 +13,15 @@ function lab_migration_install() { variable_set('lab_migration_dependency_extensions', ''); variable_set('lab_migration_result_extensions', ''); variable_set('lab_migration_xcos_extensions', ''); + + // create uploads folder + $upload_path = $_SERVER['DOCUMENT_ROOT'] . base_path() . 'lab_migration_uploads'; + if (!is_dir($upload_path)) + mkdir($upload_path); + if (!is_dir($upload_path . '/latex')) + mkdir($upload_path . '/latex'); + if (!is_dir($upload_path . '/DEPENDENCIES')) + mkdir($upload_path . '/DEPENDENCIES'); } /** @@ -35,7 +44,7 @@ function lab_migration_uninstall() { */ function lab_migration_schema() { - /* proposal */ + /* proposal */ $schema['lab_migration_proposal'] = array( 'description' => t('TODO: please describe this table!'), 'fields' => array( @@ -130,12 +139,47 @@ function lab_migration_schema() { 'type' => 'int', 'not null' => TRUE, ), + 'expected_completion_date' => array( + 'description' => t('TODO: please describe this field!'), + 'type' => 'int', + 'not null' => TRUE, + ), 'message' => array( 'description' => t('TODO: please describe this field!'), 'type' => 'text', 'size' => 'medium', 'not null' => TRUE, ), + 'solution_provider_name_title' => array( + 'description' => t('TODO: please describe this field!'), + 'type' => 'varchar', + 'length' => '5', + 'not null' => TRUE, + ), + 'solution_provider_name' => array( + 'description' => t('TODO: please describe this field!'), + 'type' => 'varchar', + 'length' => '255', + 'not null' => TRUE, + ), + 'solution_provider_contact_ph' => array( + 'description' => t('TODO: please describe this field!'), + 'type' => 'varchar', + 'length' => '15', + 'not null' => TRUE, + ), + 'solution_provider_department' => array( + 'description' => t('TODO: please describe this field!'), + 'type' => 'varchar', + 'length' => '255', + 'not null' => TRUE, + ), + 'solution_provider_university' => array( + 'description' => t('TODO: please describe this field!'), + 'type' => 'varchar', + 'length' => '255', + 'not null' => TRUE, + ), ), 'primary key' => array('id'), ); |