-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathfixture-generate-and-load
More file actions
executable file
·115 lines (68 loc) · 1.81 KB
/
Copy pathfixture-generate-and-load
File metadata and controls
executable file
·115 lines (68 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/bash
echo "Starting generation of fixtures for all configured templates"
./yii fixture/generate agent --interactive=0 --count=1
wait
./yii fixture/load Agent --interactive=0
wait
./yii fixture/generate restaurant --interactive=0 --count=1
wait
./yii fixture/load Restaurant --interactive=0
wait
./yii fixture/generate payment_method --interactive=0 --count=2
wait
./yii fixture/load PaymentMethod --interactive=0
wait
./yii fixture/generate restaurant_payment_method --interactive=0 --count=2
wait
./yii fixture/load RestaurantPaymentMethod --interactive=0
wait
./yii fixture/generate restaurant_delivery --interactive=0 --count=10
wait
./yii fixture/load RestaurantDelivery --interactive=0
wait
./yii fixture/generate category --interactive=0 --count=5
wait
./yii fixture/load Category --interactive=0
wait
./yii fixture/generate item --interactive=0 --count=30
wait
./yii fixture/load Item --interactive=0
wait
./yii fixture/generate option --interactive=0 --count=50
wait
./yii fixture/load Option --interactive=0
wait
./yii fixture/generate extra_option --interactive=0 --count=80
wait
./yii fixture/load ExtraOption --interactive=0
wait
./yii fixture/generate category_item --interactive=0 --count=30
wait
./yii fixture/load CategoryItem --interactive=0
wait
./yii fixture/generate customer --interactive=0 --count=1
wait
./yii fixture/load Customer --interactive=0
#wait
#./yii fixture/generate order --interactive=0 --count=1
#
#wait
#
#./yii fixture/load Order --interactive=0
#
#wait
#
#./yii fixture/generate order_item --interactive=0 --count=5
#
#wait
#
#./yii fixture/load OrderItem --interactive=0
#
#wait
#
#./yii fixture/generate order_item_extra_option --interactive=0 --count=5
#
#wait
#
#./yii fixture/load OrderItemExtraOption --interactive=0
echo "Done generating all fixtures"