librenms/sql-schema/1000.sql
Tony Murray f13caae2e0 Merge pull request #9761 from murrant/278-more
* add more index names to 278.sql
* don't create 1000.sql migration table if it exists
2019-01-30 16:56:05 +01:00

131 lines
13 KiB
SQL

CREATE TABLE IF NOT EXISTS migrations (id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, migration VARCHAR(255) NOT NULL, batch INT NOT NULL);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_access_points_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_device_map_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_group_map_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_log_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_rules_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_schedulables_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_schedule_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_template_map_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_templates_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_transport_groups_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_transport_map_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alert_transports_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_alerts_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_api_tokens_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_application_metrics_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_applications_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_authlog_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_bgpPeers_cbgp_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_bgpPeers_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_bill_data_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_bill_history_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_bill_perms_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_bill_port_counters_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_bill_ports_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_bills_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_callback_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_cef_switching_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ciscoASA_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_component_prefs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_component_statuslog_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_component_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_config_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_customers_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_dashboards_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_dbSchema_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_device_graphs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_device_group_device_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_device_groups_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_device_mibs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_device_oids_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_device_perf_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_device_relationships_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_devices_attribs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_devices_perms_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_devices_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_entPhysical_state_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_entPhysical_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_entityState_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_eventlog_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_graph_types_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_hrDevice_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ipsec_tunnels_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ipv4_addresses_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ipv4_mac_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ipv4_networks_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ipv6_addresses_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ipv6_networks_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_juniAtmVp_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_links_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_loadbalancer_rservers_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_loadbalancer_vservers_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_locations_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_mac_accounting_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_mefinfo_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_mempools_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_mibdefs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_munin_plugins_ds_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_munin_plugins_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_netscaler_vservers_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_notifications_attribs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_notifications_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ospf_areas_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ospf_instances_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ospf_nbrs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ospf_ports_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_packages_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_pdb_ix_peers_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_pdb_ix_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_perf_times_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_plugins_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_poller_cluster_stats_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_poller_cluster_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_poller_groups_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_pollers_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_adsl_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_fdb_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_nac_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_perms_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_stack_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_statistics_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_stp_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ports_vlans_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_processes_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_processors_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_proxmox_ports_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_proxmox_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_pseudowires_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_route_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_sensors_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_sensors_to_state_indexes_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_services_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_session_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_slas_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_state_indexes_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_state_translations_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_storage_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_stp_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_syslog_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_tnmsneinfo_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_toner_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_transport_group_transport_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_ucd_diskio_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_users_prefs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_users_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_users_widgets_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_vlans_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_vminfo_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_vrf_lite_cisco_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_vrfs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_widgets_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091314_create_wireless_sensors_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091322_add_foreign_keys_to_component_prefs_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091322_add_foreign_keys_to_component_statuslog_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091322_add_foreign_keys_to_device_group_device_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091322_add_foreign_keys_to_device_relationships_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091322_add_foreign_keys_to_sensors_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091322_add_foreign_keys_to_sensors_to_state_indexes_table', 1);
INSERT INTO migrations (migration, batch) VALUES ('2018_07_03_091322_add_foreign_keys_to_wireless_sensors_table', 1);