Files
librenms-librenms/sql-schema/1000.sql
Paul Heinrichs ebe2ecf524 Laravel migrations (#8868)
* Add migrations and seeds

* Fix spacing validation issues

* Fix linting

* Update tabs to spaces

* Update daily and install process

* Make build-base.php use the new migrations if empty or at dbschema 1000.
Seed 1000 into the database.
Temp fix for the route table index length (this table basically isn't used...)

* Fix typo in seed.
Hard code legacy schema checks to version 1000 (999 would have worked as is)

* Port association table no longer exists

* Make database validate again

* DB schema, remove as many DB::statement as possible

* update migrations
add librenms cli entry point (artisan)
update validate to check laravel migrations

* remove statements from users migration

* Fix up daily.sh and the 1000 migration

* Update migrations to current state
Take advantage of environment variables to set DB credentials.

* Fix style issues

* Update schema

* fix test db collation

* Fix migration table definition

* update db migrations

* Update migrations

* Update stats callback.  Just count the total migrations applied.

* Update 1000.sql.

* update migrations

* remove the graph type seeder, it is no longer needed

* update docs

* fix whitespace

* remove extra schema

* update tests

* fix sort

* add message

* dbSchema should actually be 1000

* add character set to db create

* Fix some artisan issues

* Update schema
2019-01-14 06:44:23 -06:00

131 lines
13 KiB
SQL

CREATE TABLE 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);