Demo nâng cấp Snipe-IT 6.3.4 → 8.8.0

So sánh cấu trúc CSDL: 6.3.4 và 8.8.0

Tính trực tiếp từ information_schema của hai CSDL demo (bản 6.3.4 và bản 8.8.0 cài mới). Bấm tên bảng để mở cấu trúc trong phpMyAdmin (chỉ đọc). Tạo lúc 12/10/2026 07:34.

50 → 61 bảng
371 → 488 bước cập nhật (migration)
0 → 1 khóa ngoại

Tổng hợp

Hạng mụcSố lượng
Bảng giữ nguyên tên48
— trong đó không đổi15
— trong đó có thay đổi33
Bảng đổi tên2
Bảng mới11
Cột thêm mới (trong 33 bảng có thay đổi)117
Cột bị bỏ hoặc đổi tên35
Cột đổi kiểu dữ liệu4

Bảng đổi tên (mở cấu trúc bản cũ và bản mới)

Bản 6.3.4Bản 8.8.0Cột thêmCột bỏ / đổi tên
accessories_usersaccessories_checkoutcreated_by, assigned_typeuser_id
asset_maintenancesmaintenancesitem_id, item_type, name, url, expected_completion_date, image, created_by, maintenance_type_id, checked_out_to_id, checked_out_to_type, responsible_party_id, completed_at, completed_byasset_id, title, completion_date, user_id

Bảng mới (11)

Cột "Số dòng sau nâng cấp" lấy từ bản sao đã chạy 117 bước cập nhật: một số bảng mới được tự điền dữ liệu từ dữ liệu cũ.

BảngSố cộtSố dòng sau nâng cấp (bản sao)Mở
asset_external_sources130xem dữ liệu bản sao
calendar_events10152xem dữ liệu bản sao
company_user518xem dữ liệu bản sao
maintenance_types78xem dữ liệu bản sao
order_items1064xem dữ liệu bản sao
orders1128xem dữ liệu bản sao
report_templates90xem dữ liệu bản sao
sync_adapter_instances120xem dữ liệu bản sao
telescope_entries80xem dữ liệu bản sao
telescope_entries_tags20xem dữ liệu bản sao
telescope_monitoring10xem dữ liệu bản sao

Bảng có thay đổi cột hoặc chỉ mục (33)

BảngCột thêmCột bị bỏ hoặc đổi tênCột đổi kiểuChỉ mục
accessories
bản cũ
created_by, legacy_purchase_date, default_purchase_cost, legacy_order_number, default_supplier_id, legacy_qtyuser_id, purchase_date, purchase_cost, order_number, supplier_id—+1 / −0
action_logs
bản cũ
created_by, quantity, order_item_iduser_idexpected_checkin: date NULL → datetime NULL+4 / −0
assets
bản cũ
created_byuser_idexpected_checkin: date NULL → datetime NULL+4 / −0
categories
bản cũ
tag_color, created_by, alert_on_response, notesuser_id—+1 / −0
checkout_acceptances
bản cũ
qty, note, alert_on_response_id———
checkout_requests
bản cũ
fulfilled_quantity, start_date, end_date, notes, state, fulfilled_by, checkout_actionlog_id——+3 / −0
companies
bản cũ
parent_id, tag_color, deleted_at, created_by, notes——+1 / −1
components
bản cũ
created_by, default_supplier_id, legacy_order_number, legacy_purchase_date, default_purchase_cost, model_number, manufacturer_id, legacy_qty, requestableuser_id, supplier_id, order_number, purchase_date, purchase_cost—+1 / −0
components_assets
bản cũ
created_byuser_id——
consumables
bản cũ
created_by, default_supplier_id, legacy_purchase_date, default_purchase_cost, legacy_order_number, legacy_qtyuser_id, supplier_id, purchase_date, purchase_cost, order_number—+1 / −0
consumables_users
bản cũ
created_byuser_id——
custom_fields
bản cũ
created_by, display_checkin, display_checkout, display_audituser_idformat: varchar(191) → text—
custom_fieldsets
bản cũ
created_byuser_id——
departments
bản cũ
tag_color, created_byuser_id——
depreciations
bản cũ
depreciation_type, created_byuser_id——
imports
bản cũ
created_by, processing_by, processing_started_at——+1 / −0
kits
bản cũ
created_by———
kits_accessories
bản cũ
created_by———
kits_consumables
bản cũ
created_by———
kits_licenses
bản cũ
created_by———
kits_models
bản cũ
created_by———
license_seats
bản cũ
unreassignable_seat, created_byuser_id——
licenses
bản cũ
created_by, requestableuser_id—+2 / −0
locations
bản cũ
tag_color, created_by, company_id, notesuser_id—+4 / −0
manufacturers
bản cũ
tag_color, created_by, notesuser_id——
models
bản cũ
require_serial, created_byuser_id—+2 / −0
permission_groups
bản cũ
notes, scim_externalid———
saml_nonces
bản cũ
———+1 / −1
settings
bản cũ
created_by, nav_link_color, link_light_color, link_dark_color, ldap_display_name, ldap_mobile, ldap_address, ldap_city, ldap_state, ldap_zip, scope_locations_fmcs, null_company_is_floater, block_api_user_agents, blocked_api_user_agents, block_blank_api_user_agents, week_start, admin_cc_always, default_avatar, acceptance_pdf_logo, label2_2d_prefix, label2_empty_row_count, profile_edit, require_checkinout_notes, shortcuts_enabled, due_checkin_days, ldap_invert_active_flag, manager_view_enableduser_id, barcode_type, alt_barcode——
status_labels
bản cũ
created_byuser_id——
suppliers
bản cũ
tag_color, created_byuser_idnotes: varchar(191) NULL → text NULL—
users
bản cũ
display_name, mobile, legacy_company_id, nav_link_color, link_light_color, link_dark_color, enable_sounds, enable_confetticompany_id—+4 / −1
users_groups
bản cũ
created_by———

Bảng không đổi (15)

asset_logs asset_uploads custom_field_custom_fieldset login_attempts migrations models_custom_fields oauth_access_tokens oauth_auth_codes oauth_clients oauth_personal_access_clients oauth_refresh_tokens password_resets requested_assets requests throttle

Khóa ngoại

Bản 6.3.4: 0. Bản 8.8.0: 1 (bảng kỹ thuật Telescope). Quan hệ giữa các bảng nghiệp vụ do ứng dụng quản lý nên CSDL không tự phát hiện dữ liệu sai lệch.

Truy vấn khóa ngoại — bản 6.3.4 Truy vấn khóa ngoại — bản 8.8.0

Cấu trúc sau nâng cấp so với cài mới 8.8.0

Khớp hoàn toàn: 61/61 bảng của bản sao đã nâng cấp có tên cột, kiểu dữ liệu và khả năng NULL giống hệt bản 8.8.0 cài mới.