You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/05/09 18:30:39 UTC

[04/27] incubator-trafficcontrol git commit: added seeds_demo hook

added seeds_demo hook


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/83d5be9a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/83d5be9a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/83d5be9a

Branch: refs/heads/master
Commit: 83d5be9aca49822fcc52e0f0436c3cfee5bfc4f4
Parents: 775078c
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue May 2 11:03:03 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue May 9 18:28:58 2017 +0000

----------------------------------------------------------------------
 traffic_ops/app/db/admin.pl | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/83d5be9a/traffic_ops/app/db/admin.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/admin.pl b/traffic_ops/app/db/admin.pl
index bf6093e..0a3d8bb 100755
--- a/traffic_ops/app/db/admin.pl
+++ b/traffic_ops/app/db/admin.pl
@@ -65,6 +65,7 @@ my $usage = "\n"
 	. "redo  - Roll back the most recently applied migration, then run it again.\n"
 	. "reset  - Execute db 'dropdb', 'createdb', load_schema, migrate on the database for the current environment.\n"
 	. "reverse_schema  - Reverse engineer the lib/Schema/Result files from the environment database.\n"
+	. "seed_demo  - Execute sql from db/seeds_demo.sql for loading static demo data.\n"
 	. "seed  - Execute sql from db/seeds.sql for loading static data.\n"
 	. "show_users  - Execute sql to show all of the user for the current environment.\n"
 	. "status  - Print the status of all migrations.\n"
@@ -133,6 +134,9 @@ if ( defined($argument) ) {
 	elsif ( $argument eq 'seed' ) {
 		seed();
 	}
+	elsif ( $argument eq 'seed_demo' ) {
+		seed_demo();
+	}
 	elsif ( $argument eq 'load_schema' ) {
 		load_schema();
 	}