Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snipeit incompatible with MySQL-8.x (8.0) #7145

Closed
odhiambo opened this issue Jun 11, 2019 · 6 comments
Closed

Snipeit incompatible with MySQL-8.x (8.0) #7145

odhiambo opened this issue Jun 11, 2019 · 6 comments

Comments

@odhiambo
Copy link

Please confirm you have done the following before posting your bug report:

Describe the bug
Installation does not proceed to 2nd stage during Pre-flight and Setup. This is because of the fact that (I believe) MySQL-8.x seems to reserve the word "groups" from being used in SQL statements - tablenames/columns.

The query below failed and as such my installation could not go past Snipe-IT Pre-Flight step 2 - Create Database Tables..

(3/3) QueryException
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups set permissions = ? where id = ?' at line 1 (SQL: update groups set permissions = {"admin":1,"users":1,"reports":1} where id = 1)

To Reproduce
Steps to reproduce the behavior:
While using mysql-8.0.x as the D B, go through all the steps until you get to the Pre-Flight setup using the webUI.

Expected behavior
I expected that the SQL queries would be executed successfully. That fails.

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

  • Snipe-IT Version 4.7.4
  • OS: FreeBSD-12
  • Web Server: Apache-2.4.38
  • PHP Version: 7.1.27

Desktop (please complete the following information):

  • OS: Windows 10 Pro
  • Browser : Edge (chromium)
  • Version : Version 76.0.176.1 (Official build) dev (64-bit)

Error Messages

(3/3) QueryExceptionSQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups set permissions = ? where id = ?' at line 1 (SQL: update groups set permissions = {"admin":1,"users":1,"reports":1} where id = 1)

in Connection.php line 664
at Connection->runQueryCallback('update groups set permissions = ? where id = ?', array('{"admin":1,"users":1,"reports":1}', 1), object(Closure))in Connection.php line 624
at Connection->run('update groups set permissions = ? where id = ?', array('{"admin":1,"users":1,"reports":1}', 1), object(Closure))in Connection.php line 490
at Connection->affectingStatement('update groups set permissions = ? where id = ?', array('{"admin":1,"users":1,"reports":1}', 1))in Connection.php line 423
at Connection->update('update groups set permissions = ? where id = ?', array('{"admin":1,"users":1,"reports":1}', 1))in DatabaseManager.php line 327
at DatabaseManager->__call('update', array('update groups set permissions = ? where id = ?', array('{"admin":1,"users":1,"reports":1}', 1)))in Facade.php line 221
at Facade::__callStatic('update', array('update groups set permissions = ? where id = ?', array('{"admin":1,"users":1,"reports":1}', 1)))in 2014_11_04_231416_update_group_field_for_reporting.php line 21
at UpdateGroupFieldForReporting->up()in Migrator.php line 359
at Migrator->Illuminate\Database\Migrations{closure}()in Migrator.php line 366
at Migrator->runMigration(object(UpdateGroupFieldForReporting), 'up')in Migrator.php line 177
at Migrator->runUp('/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_11_04_231416_update_group_field_for_reporting.php', 2, false)in Migrator.php line 146
at Migrator->runPending(array('/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_11_04_231416_update_group_field_for_reporting.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_11_05_212408_add_fields_to_licenses.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_11_07_021042_add_image_to_supplier.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_11_20_203007_add_username_to_user.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_11_20_223947_add_auto_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_11_20_224421_add_prefix_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_11_21_104401_change_licence_type.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2014_12_09_082500_add_fields_maintained_term_to_licenses.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_04_155757_increase_user_field_lengths.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_07_013537_add_soft_deleted_to_log.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_10_040958_fix_bad_assigned_to_ids.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_10_053310_migrate_data_to_new_statuses.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_11_044104_migrate_make_license_assigned_null.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_11_104406_migrate_create_requests_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_12_001312_add_mac_address_to_asset.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_12_024100_change_license_notes_type.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_17_231020_add_localonly_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_19_222322_add_logo_and_colors_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_24_072043_add_alerts_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_25_022931_add_eula_fields.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_25_204513_add_accessories_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_26_091228_add_accessories_user_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_26_115128_add_deleted_at_models.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_02_26_233005_add_category_type.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_03_01_231912_update_accepted_at_to_acceptance_id.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_03_05_011929_add_qr_type_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_03_18_055327_add_note_to_user.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_04_29_234704_add_slack_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_05_04_085151_add_parent_id_to_locations_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_05_22_124421_add_reassignable_to_licenses.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_06_10_003314_fix_default_for_user_notes.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_06_10_003554_create_consumables.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_06_15_183253_move_email_to_username.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_06_23_070346_make_email_nullable.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_06_26_213716_create_asset_maintenances_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_07_04_212443_create_custom_fields_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_07_09_014359_add_currency_to_settings_and_locations.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_07_21_122022_add_expected_checkin_date_to_asset_logs.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_07_24_093845_add_checkin_email_to_category_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_07_25_055415_remove_email_unique_constraint.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_07_29_230054_add_thread_id_to_asset_logs_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_07_31_015430_add_accepted_to_assets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_09_09_195301_add_custom_css_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_09_21_235926_create_custom_field_custom_fieldset.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_09_22_000104_create_custom_fieldsets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_09_22_003321_add_fieldset_id_to_assets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_09_22_003413_migrate_mac_address.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_09_28_003314_fix_default_purchase_order.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_10_01_024551_add_accessory_consumable_price_info.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_10_12_192706_add_brand_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_10_22_003314_fix_defaults_accessories.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_10_23_182625_add_checkout_time_and_expected_checkout_date_to_assets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_05_061015_create_companies_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_05_061115_add_company_id_to_consumables_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_05_183749_image.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_06_092038_add_company_id_to_accessories_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_06_100045_add_company_id_to_users_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_06_134742_add_company_id_to_licenses_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_08_035832_add_company_id_to_assets_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_08_222305_add_ldap_fields_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_15_151803_add_full_multiple_companies_support_to_settings_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_26_195528_import_ldap_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_11_30_191504_remove_fk_company_id.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_12_21_193006_add_ldap_server_cert_ignore_to_settings_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_12_30_233509_add_timestamp_and_userId_to_custom_fields.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2015_12_30_233658_add_timestamp_and_userId_to_custom_fieldsets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_01_28_041048_add_notes_to_models.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_02_19_070119_add_remember_token_to_users_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_02_19_073625_create_password_resets_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_03_02_193043_add_ldap_flag_to_users.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_03_02_220517_update_ldap_filter_to_longer_field.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_03_08_225351_create_components_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_03_09_024038_add_min_stock_to_tables.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_03_10_133849_add_locale_to_users.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_03_10_135519_add_locale_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_03_11_185621_add_label_settings_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_03_22_125911_fix_custom_fields_regexes.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_04_28_141554_add_show_to_users.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_05_16_164733_add_model_mfg_to_consumable.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_05_19_180351_add_alt_barcode_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_05_19_191146_add_alter_interval.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_05_19_192226_add_inventory_threshold.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_05_20_024859_remove_option_keys_from_settings_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_05_20_143758_remove_option_value_from_settings_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_06_01_140218_add_email_domain_and_format_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_06_22_160725_add_user_id_to_maintenances.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_07_13_150015_add_is_ad_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_07_14_153609_add_ad_domain_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_07_22_003348_fix_custom_fields_regex_stuff.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_07_22_054850_one_more_mac_addr_fix.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_07_22_143045_add_port_to_ldap_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_07_22_153432_add_tls_to_ldap_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_07_27_211034_add_zerofill_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_08_02_124944_add_color_to_statuslabel.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_08_04_134500_add_disallow_ldap_pw_sync_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_08_09_002225_add_manufacturer_to_licenses.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_08_12_121613_add_manufacturer_to_accessories_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_08_23_143353_add_new_fields_to_custom_fields.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_08_23_145619_add_show_in_nav_to_status_labels.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_08_30_084634_make_purchase_cost_nullable.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_09_01_141051_add_requestable_to_asset_model.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_09_02_001448_create_checkout_requests_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_09_04_180400_create_actionlog_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_09_04_182149_migrate_asset_log_to_action_log.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_09_19_235935_fix_fieldtype_for_target_type.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_09_23_140722_fix_modelno_in_consumables_to_string.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_09_28_231359_add_company_to_logs.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_14_130709_fix_order_number_to_varchar.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_16_015024_rename_modelno_to_model_number.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_16_015211_rename_consumable_modelno_to_model_number.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_16_143235_rename_model_note_to_notes.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_16_165052_rename_component_total_qty_to_qty.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_19_145520_fix_order_number_in_components_to_string.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_27_151715_add_serial_to_components.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_27_213251_increase_serial_field_capacity.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_29_002724_enable_2fa_fields.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_10_29_082408_add_signature_to_acceptance.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_11_01_030818_fix_forgotten_filename_in_action_logs.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_11_13_020954_rename_component_serial_number_to_serial.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_11_16_172119_increase_purchase_cost_size.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_11_17_161317_longer_state_field_in_location.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_11_17_193706_add_model_number_to_accessories.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_11_24_160405_add_missing_target_type_to_logs_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_12_07_173720_increase_size_of_state_in_suppliers.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_12_19_004212_adjust_locale_length_to_10.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_12_19_133936_extend_phone_lengths_in_supplier_and_elsewhere.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2016_12_27_212631_make_asset_assigned_to_polymorphic.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_01_09_040429_create_locations_ldap_query_field.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_01_14_002418_create_imports_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_01_25_063357_fix_utf8_custom_field_column_names.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_03_03_154632_add_time_date_display_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_03_10_210807_add_fields_to_manufacturer.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_05_08_195520_increase_size_of_field_values_in_custom_fields.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_05_22_204422_create_departments.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_05_22_233509_add_manager_to_locations_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_06_14_122059_add_next_autoincrement_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_06_18_151753_add_header_and_first_row_to_importer_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_07_07_191533_add_login_text.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_07_25_130710_add_thumbsize_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_08_03_160105_set_asset_archived_to_zero_default.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_08_22_180636_add_secure_password_options.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_08_25_074822_add_auditing_tables.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_08_25_101435_add_auditing_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_09_18_225619_fix_assigned_type_not_being_nulled.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_03_015503_drop_foreign_keys.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_10_123504_allow_nullable_depreciation_id_in_models.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_17_133709_add_display_url_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_19_120002_add_custom_forgot_password_url.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_19_130406_add_image_and_supplier_to_accessories.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_20_234129_add_location_indices_to_assets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_25_202930_add_images_uploads_to_locations_manufacturers_etc.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_27_180947_denorm_asset_locations.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_27_192423_migrate_denormed_asset_locations.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_10_30_182938_add_address_to_user.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_11_08_025918_add_alert_menu_setting.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_11_08_123942_labels_display_company_name.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_12_12_010457_normalize_asset_last_audit_date.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_12_12_033618_add_actionlog_meta.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2017_12_26_170856_re_normalize_last_audit.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_01_17_184354_add_archived_in_list_setting.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_01_19_203121_add_dashboard_message_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_01_24_062633_add_footer_settings_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_01_24_093426_add_modellist_preferenc.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_02_22_160436_add_remote_user_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_03_03_011032_add_theme_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_03_06_054937_add_default_flag_on_statuslabels.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_03_23_212048_add_display_in_email_to_custom_fields.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_03_24_030738_add_show_images_in_email_setting.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_03_24_050108_add_cc_alerts.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_03_29_053618_add_canceled_at_and_fulfilled_at_in_requests.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_03_29_070121_add_drop_unique_requests.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_03_29_070511_add_new_index_requestable.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_04_02_150700_labels_display_model_name.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_04_16_133902_create_custom_field_default_values_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_05_04_073223_add_category_to_licenses.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_05_04_075235_add_update_license_category.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_05_08_031515_add_gdpr_privacy_footer.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_05_14_215229_add_indexes.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_05_14_223646_add_indexes_to_assets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_05_14_233638_denorm_counters_on_assets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_05_16_153409_add_first_counter_totals_to_assets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_06_21_134622_add_version_footer.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_07_05_215440_add_unique_serial_option_to_settings.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_07_17_005911_create_login_attempts_table.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2018_07_24_154348_add_logo_to_print_assets.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2019_02_14_154310_change_auto_increment_prefix_to_nullable.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2019_02_16_143518_auto_increment_back_to_string.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2019_02_20_234421_make_serial_nullable.php', '/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations/2019_02_21_224703_make_fields_nullable_for_integrity.php'),array('pretend' => false, 'step' => false))in Migrator.php line 95
at Migrator->run(array('/usr/local/www/apache24/data/domainpanel/Inventory/snipe-it-4.7.4/database/migrations'), array('pretend' => false, 'step' => false))in MigrateCommand.php line 69
at MigrateCommand->handle()
at call_user_func_array(array(object(MigrateCommand), 'handle'), array())in BoundMethod.php line 29
at BoundMethod::Illuminate\Container{closure}()in BoundMethod.php line 87
at BoundMethod::callBoundMethod(object(Application), array(object(MigrateCommand), 'handle'), object(Closure))in BoundMethod.php line 31
at BoundMethod::call(object(Application), array(object(MigrateCommand), 'handle'), array(), null)in Container.php line 549
at Container->call(array(object(MigrateCommand), 'handle'))in Command.php line 183
at Command->execute(object(ArrayInput), object(OutputStyle))in Command.php line 255
at Command->run(object(ArrayInput), object(OutputStyle))in Command.php line 170
at Command->run(object(ArrayInput), object(BufferedOutput))in Application.php line 960
at Application->doRunCommand(object(MigrateCommand), object(ArrayInput), object(BufferedOutput))in Application.php line 255
at Application->doRun(object(ArrayInput), object(BufferedOutput))in Application.php line 148
at Application->run(object(ArrayInput), object(BufferedOutput))in Application.php line 88
at Application->run(object(ArrayInput), object(BufferedOutput))in Application.php line 177
at Application->call('migrate', object(Collection), null)in Kernel.php line 249
at Kernel->call('migrate', array('--force' => true))in Facade.php line 221
at Facade::__callStatic('call', array('migrate', array('--force' => true)))in SettingsController.php line 253
at SettingsController->getSetupMigrate()
at call_user_func_array(array(object(SettingsController), 'getSetupMigrate'), array())in Controller.php line 54
at Controller->callAction('getSetupMigrate', array())in ControllerDispatcher.php line 45
at ControllerDispatcher->dispatch(object(Route), object(SettingsController), 'getSetupMigrate')in Route.php line 212
at Route->runController()in Route.php line 169
at Route->run()in Router.php line 658
at Router->Illuminate\Routing{closure}(object(Request))in Pipeline.php line 30
at Pipeline->Illuminate\Routing{closure}(object(Request))in CreateFreshApiToken.php line 49
at CreateFreshApiToken->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in CheckForTwoFactor.php line 49
at CheckForTwoFactor->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in CheckLocale.php line 42
at CheckLocale->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in VerifyCsrfToken.php line 68
at VerifyCsrfToken->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in EncryptCookies.php line 66
at EncryptCookies->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in Pipeline.php line 102
at Pipeline->then(object(Closure))in Router.php line 660
at Router->runRouteWithinStack(object(Route), object(Request))in Router.php line 635
at Router->runRoute(object(Request), object(Route))in Router.php line 601
at Router->dispatchToRoute(object(Request))in Router.php line 590
at Router->dispatch(object(Request))in Kernel.php line 176
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))in Pipeline.php line 30
at Pipeline->Illuminate\Routing{closure}(object(Request))in InjectDebugbar.php line 65
at InjectDebugbar->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in TransformsRequest.php line 30
at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in CheckForDebug.php line 25
at CheckForDebug->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in CheckForSetup.php line 35
at CheckForSetup->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in TrustProxies.php line 57
at TrustProxies->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in NosniffGuard.php line 17
at NosniffGuard->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in ContentSecurityPolicyHeader.php line 18
at ContentSecurityPolicyHeader->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in ReferrerPolicyHeader.php line 17
at ReferrerPolicyHeader->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in XssProtectHeader.php line 18
at XssProtectHeader->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in FrameGuard.php line 17
at FrameGuard->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in StartSession.php line 63
at StartSession->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure))in Pipeline.php line 149
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))in Pipeline.php line 102
at Pipeline->then(object(Closure))in Kernel.php line 151
at Kernel->sendRequestThroughRouter(object(Request))in Kernel.php line 116
at Kernel->handle(object(Request))in index.php line 58

@odhiambo
Copy link
Author

2019-06-11

@snipe snipe closed this as completed in 1d0d25d Jun 12, 2019
@snipe
Copy link
Owner

snipe commented Jun 12, 2019

Hm, I just realized this might not work with new installs, since the original groups table wouldn't be allowed to be created (and subsequently renamed.) Trying to come up with a back-in-time compatible patch.

@snipe
Copy link
Owner

snipe commented Jun 12, 2019

Okay, I just pushed out another back-in-time fix. You can try a fresh pull from master and give it another go.

@odhiambo
Copy link
Author

odhiambo commented Jun 13, 2019 via email

@snipe
Copy link
Owner

snipe commented Jun 14, 2019

Apparently in MySQL 8, you can't use groups as a table name.

@odhiambo
Copy link
Author

odhiambo commented Jun 14, 2019 via email

ShadowLinks added a commit to ShadowLinks/snipe-it that referenced this issue Jun 19, 2019
ShadowLinks added a commit to ShadowLinks/snipe-it that referenced this issue Jun 19, 2019
…or mysql 8 reserved word compatibility"

This reverts commit 1d0d25d.
snipe added a commit that referenced this issue Aug 15, 2019
* Fixes #6204 - added email alerts and web/API access to assets due for audits (#6992)

* Added upcoming audit report

TODO: Fid diff/threshold math

* Added route to list overdue / upcoming assets via API

* Controller/API methods for due/overdue audits

We could probably skip this and just handle it via view in the routes…

* Added query scopes for due and overdue audits

* Added audit due console command to kernel

* Added ability to pass audit specs to main API asset search method

* Added audit presenter

* Added bootstrap-tables presenter formatter to display an audit button

* Added gated sidenav items to left nav

* Added audit due/overdue blades

* Cleanup on audit due/overdue console command

* Added language strings for audit views

* Fixed :threshold placeholder

* Removed unused setting variable

* Fixed next audit date math

* Added scope for both overdue and upcoming

* Derp. Wrong version

* Bumped version

(I will release this version officially tomorrow)

* Leave the activated state for users alone in normal LDAP synchronisation. (#6988)

* Fixed #7003 - crash when warranty months or purchase date is null

* Fixed #6956 - viewKeys policy inconsistent  (#7009)

* Fixed #6956 - Added additional gates show showing/hiding license keys

* Modified gate to allow user to see licenses if they can create or edit the license as well

* Added API middleware to API routes to enable throttling

TODO: Figure out how to make this costumizable without touching the code

* Import locations from CSV via command line (#7021)

* Added import locations command

* Small fixes to location importer

* Added country, LDAP OU

* Cleaned up comments, added more clarification to what the script does

* Added ability to update groups via API

Fixes [ch9139]

* Bumped version

* Fixed #6883 - remove escaping of fields on LDAP import

* Fixed #6880 - correctly encrypt encrypted fields via the API

* Fixes #5054: LDAP users deactivated for none-ad (#7032)

When using none-AD ldap, users are automatically deactivated every LDAP
sync.  This commit changes the behaviour so that if the active flag isn't set,
the users are enabled.

Fixed #5054, at least for 4.X

* Updated packages

  - Updating erusev/parsedown (v1.7.2 => 1.7.3): Downloading (100%)
  - Updating squizlabs/php_codesniffer (3.4.1 => 3.4.2): Downloading (100%)
  - Updating symfony/polyfill-mbstring (v1.10.0 => v1.11.0): Downloading (100%)
  - Updating symfony/var-dumper (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating league/flysystem (1.0.50 => 1.0.51): Downloading (100%)
  - Updating symfony/translation (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating nesbot/carbon (1.36.2 => 1.37.1): Downloading (100%)
  - Updating symfony/debug (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/console (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/finder (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/polyfill-ctype (v1.10.0 => v1.11.0): Downloading (100%)
  - Updating symfony/polyfill-php70 (v1.10.0 => v1.11.0): Downloading (100%)
  - Updating symfony/http-foundation (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/event-dispatcher (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/http-kernel (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/process (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/routing (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/polyfill-util (v1.10.0 => v1.11.0): Downloading (100%)
  - Updating symfony/polyfill-php56 (v1.10.0 => v1.11.0): Downloading (100%)
  - Updating symfony/psr-http-message-bridge (v1.1.1 => v1.1.2): Downloading (failed)
Downloading (100%)
  - Updating rollbar/rollbar (v1.7.5 => v1.8.1): Downloading (100%)
  - Updating symfony/yaml (v3.4.23 => v3.4.27): Downloading (100%)
  - Updating symfony/browser-kit (v3.4.23 => v3.4.27): Downloading (100%)

* Fixed #7044 - API update deleted custom fields if they are not re-presented

* Fixed XSS vulnerability when creating a new categories, etc via modal on create

Same fix as before, because of the weird select2 post-parsing ajax behavior

* Updated email strings

* Fixed #7046 - added user website url back into UI

* Updated language strings

* Bumped version

* Updated packages

* New backups config for spatie

* Removed debugbar service provider (autodiscovery)

* Use laravel v5.5 withCount manual aliases

* Added spatie language files

* Removed old laravel backups config

This config file was renamed in a newer version of spatie laravel-backup

* Set the serialization

* Added the command loader to console kernel

* Renamed fire() to handle()

* Updated withCount to use manual naming

* Updated backup path in backup admin

* Updated travis with new php versions

* Bumped laravel version in readme

* Fixed custom field edit screen

* Fixed baseUrl is undefined error

I literally cannot figure out how this ever worked before.

* Fix for included files in backup

* Bumped version

* Switch has() to filled()

* Change ->has() to ->filled()

* Removed cosole log

* Bumped packages

* Use getReader instead of fetchAssoc for CSV parser

https://csv.thephpleague.com/9.0/upgrading/

* Handle JSON validation errors like 5.4

* Handle JSON validation errors like 5.4

* Handle JSON validation errors like 5.4

* Trying to fix ajax asset validation

This I think gets us closer, but still not handling the validation on the asset properly.

When I do a print_r of the validation in the other items, its looking for an error bag that looks something like this:

```
Illuminate\Support\MessageBag Object
(
    [messages:protected] => Array
        (
            [name] => Array
                (
                    [0] => The name field is required.
                )

            [seats] => Array
                (
                    [0] => The seats field is required.
                )

            [category_id] => Array
                (
                    [0] => The category id field is required.
                )

        )

    [format:protected] => :message
)
```

Currently the Assets ajax returns:

```
[2019-05-24 06:52:06] develop.ERROR: array (
  'messages' =>
  array (
    'model_id' =>
    array (
      0 => 'The model id field is required.',
    ),
    'status_id' =>
    array (
      0 => 'The status id field is required.',
    ),
    'asset_tag' =>
    array (
      0 => 'The asset tag field is required.',
    ),
  ),
)
```

So not sure why it’s not working.

* Fixed missing asset validation

* Check that a model exists before trying to fiddle with fieldsets

* Tidied up license check

* Removed extra escaping on checkin

* Updated importer to work with newer CSV Reader::getRecords() method

* Fixed field mapping

* Small fix for reordering fields

Fixes Illuminate\Database\QueryException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'order' cannot be null (SQL: insert into `custom_field_custom_fieldset` (`custom_field_id`, `custom_fieldset_id`, `order`, `required`) values (12, 7, , 0)) [ch1151]

This needs revisiting for a more solid fix, especially for data that was already entered bad.

* Fixed bug where sorting by company name in Users API did not work

Fixes [ch9200]

* Removed custom fields from AssignedSearch to prevent confusing data in selectlist

Fixes [ch9193]

* Removed alert-danger from tests

* Fixed missed consumables_count withCount() statement

* Fixed Undefined variable user in $backto if checked out to a non-user

Fixes [ch9194]

* Check for valid model before attempting to access fieldsets

Fixes [ch1249]

* Only build the log upload destination path if there is a matching record

Fixes [ch1232]

* Fixed free_seats_count variable name

(I forgot that Laravel switched camel case to snake case for their old 5.4 withCount variables)

* Only gtry to delete the file if a record is found in the log

* Only try to get fieldset if model is valid

* Fixed more camel-casing -> snake-casing

* Only display the file if the log record can be found

* Fixed casing in sync command

* Updated README

* Derp - typo

* Added link to Atlassian plugin

* More Atlassian clarifications

* Show accessory image on view page

* Increased image size to 800px, added lightboxes

* Fixed #7083 - Removed user_exists constraint on department save

If the user has been deleted, this prevented the department from being successfully saved on edit

* Updated branch in version file

* Dockerfile update to bring us up to php v7.1 for Laravel 5.5 (#7084)

* bump up to php7.1

& change deprecated MAINTAINER to a LABEL so it is visible with `docker inspect`

* AND modapache ><

* 2 updates required to get software-properties+ppa

* Bumped version

* Bumped release again :(

* Missed one

* Fixed #7098 - updated backup config for deleteFile() method

* Fixed #7092 -  handle weird port forwarding/port numbers for baseUrl

* Bumped version

* Fixed #7099 - set email to null by default for backup notifications

* Removed old comments

* Fixed #7100 - Check if $user isset on checkin

* Increased throttle to 120 requests per minute

* Added Filipino, corrected order for Spanish variations

* Update language strings

* Bumped hash

* Changed has to filled to fix bulk asset editing

* Bumped point version

* Small fixes for phpleague CSB reader v9

* Improved error checking in locations importer

* Fixed #7145 - rename groups table to permissions_group for mysql 8 reserved word compatibility

* Reduce minimum group name length to 2 (from 3)

eg: IT

* Back in time fix FOR #7145 for new installs on MySQL 8+

* Fixed permission insert

//TODO

Handle this via model

* Possible fix for reporting/admin migration back in time

* Fixed #7164 - change table name to permission_groups

* Fixed LDAP password blanking on save

* fixing previous commit's actual wiping of password (#7183)

replaced Input::fille('ldap_pword') with _filled_.   Should be good to go.  

#7179

#7169

* Bumped version

* Downgrading rollbar for Laravel 5.5

* Spelling Correction (#7206)

Fixed Spelling for the word reqrite, to be rewrite.

* Fix #6910: Add logic to manipulate the eloquent query. (#7006)

* Added company_id to consumables_users table

* Added logic to manage when a pivot table doesn't have the column company_id trough a join with users

* Remove a migration that tries to fix this problem, but is not longer necessary

* Addresses #7238 - add PWA code to layout

Needs additional UX testing

* Better log message for bad LDAP connection

* Fixed #7186 - has vs filled in User’s API blanking out groups if no group_ids are passed

* Comment clarification on #7186

* Check for valid seat on hardware view

* Added space between footer and custom message

* Cap warranty months to three characters

Filles rollbar 209

* Cap warranty months to 3 on the frontend blade

* Fixed countable() strings on user destroy

* Check that the user has assets and that the aset model is valid

* Bumped hash

* Caps asset warranty to 20 years

* Command to fix custom field unicode conversion differences between PHP versions (#7263)

* Fixes #7252 form request changes (#7272)

* Fixes for #7252 - custom fields not validating / no validaton messages in API w/form requests

* Removed debug info

* More fixes for #7252

This is mostly working as intended, if not yet the way Laravel wants us to do it.

Right now, the API returns correctly, and the form UI will return highlighted errors, with the input filled in ~sometimes~. I’m not sure why it’s only sometimes yet, but this is potentially progress.

* Removed experimental method

* Check for digits_between:0,240 for warranty

* Removed debug code

* Apply fix from PR #7273 to master

* Bumped hash

* Fixed #7250 - permission issue for API fieldsets and fields endpoints

This applies the change from #7294 to master

* Add @mskrip as a contributor

* Fixed #7270 - Checking-in Assets via API Removes the Item's Asset Name

* CORS for api (#7292)

* Added CORS support to API

* Changed order so CORS will still work if throttle hit

* Added APP_CORS_ALLOWED_ORIGINS env option

* Fixed typo

* Clarified header comments

* More clarification

* DIsable CORS allowed origins by default to replicate existing behavior

* Change variable name to be clearer

* Bumped version

* Added condition to deal with fieldname 'rtd_location' which can be tried to be queried in some places and doesn't exist in database (#7317)

* Added comments to the ByFilter query scope for clarity

* Added accessories checkout/checkin API endpoint

* Fixed CVE-2019-10742

https://nvd.nist.gov/vuln/detail/CVE-2019-10742

* Update README.md (#7334)

Add reference to CSV importer.

* Group related variables in .env

* History importer fixes

* Fixes to history importer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants