Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed schema structure

  • Loading branch information...
commit bc77c847ac472b09db1e5084a3f392c204e00a91 1 parent 464ee57
authored March 17, 2010
2  Survey-Perl/lib/Survey/Perl/Answers/Schema.pm
... ...
@@ -1,4 +1,4 @@
1  
-package Survey::Perl::Auth::Schema;
  1
+package Survey::Perl::Answers::Schema;
2 2
 
3 3
 use strict;
4 4
 use warnings;
410  ...ib/Survey/Perl/Answers/Schema/ResultSet/Survey.pm → ...l/lib/Survey/Perl/Answers/Schema/Result/Survey.pm
... ...
@@ -1,4 +1,4 @@
1  
-package Survey::Perl::Answers::Schema::Survey;
  1
+package Survey::Perl::Answers::Schema::Result::Survey;
2 2
 use strict;
3 3
 use warnings;
4 4
 
@@ -10,539 +10,539 @@ __PACKAGE__->add_columns(
10 10
     "surveyid",
11 11
     {
12 12
         data_type     => "INTEGER",
13  
-        default_value => undef,
14  
-        is_nullable   => 1,
  13
+        default_value => "undef",
  14
+        is_nullable   => "1",
15 15
     },
16 16
 
17 17
     "gender",
18 18
     {
19 19
         data_type     => "char",
20  
-        default_value => undef,
21  
-        is_nullable   => 1,
  20
+        default_value => "undef",
  21
+        is_nullable   => "1",
22 22
     },
23 23
     "age",
24 24
     {
25 25
         data_type     => "INTEGER",
26  
-        default_value => undef,
27  
-        is_nullable   => 1,
  26
+        default_value => "undef",
  27
+        is_nullable   => "1",
28 28
     },
29 29
     "country_birth",
30 30
     {
31 31
         data_type     => "char",
32  
-        default_value => undef,
33  
-        is_nullable   => 1,
  32
+        default_value => "undef",
  33
+        is_nullable   => "1",
34 34
         size          => 200
35 35
     },
36 36
     "country_residence",
37 37
     {
38 38
         data_type     => "char",
39  
-        default_value => undef,
40  
-        is_nullable   => 1,
41  
-        size          => 200,
  39
+        default_value => "undef",
  40
+        is_nullable   => "1",
  41
+        size          => "200",
42 42
     },
43 43
     "highest_qual",
44 44
     {
45 45
         data_type     => "char",
46  
-        default_value => undef,
47  
-        is_nullable   => 1,
48  
-        size          => 50,
  46
+        default_value => "undef",
  47
+        is_nullable   => "1",
  48
+        size          => "50",
49 49
     },
50 50
     "field",
51 51
     {
52 52
         data_type     => "char",
53  
-        default_value => undef,
54  
-        is_nullable   => 1,
  53
+        default_value => "undef",
  54
+        is_nullable   => "1",
55 55
         size          => "200"
56 56
     },
57 57
     "perl_formal",
58 58
     {
59 59
         data_type     => "char",
60  
-        default_value => undef,
61  
-        is_nullable   => 1,
  60
+        default_value => "undef",
  61
+        is_nullable   => "1",
62 62
         size          => "15"
63 63
     },
64 64
     "other_dynamic_formal",
65 65
     {
66 66
         data_type     => "char",
67  
-        default_value => undef,
68  
-        is_nullable   => 1,
  67
+        default_value => "undef",
  68
+        is_nullable   => "1",
69 69
         size          => "25"
70 70
     },
71 71
     "other_dynamic_taught",
72 72
     {
73 73
         data_type     => "char",
74  
-        default_value => undef,
75  
-        is_nullable   => 1,
  74
+        default_value => "undef",
  75
+        is_nullable   => "1",
76 76
         size          => "25"
77 77
     },
78 78
     "income",
79 79
     {
80 80
         data_type     => "char",
81  
-        default_value => undef,
82  
-        is_nullable   => 1,
  81
+        default_value => "undef",
  82
+        is_nullable   => "1",
83 83
         size          => "25"
84 84
     },
85 85
     "industries",
86 86
     {
87 87
         data_type     => "char",
88  
-        default_value => undef,
89  
-        is_nullable   => 1,
  88
+        default_value => "undef",
  89
+        is_nullable   => "1",
90 90
         size          => 100
91 91
     },
92 92
 
93 93
     "prog_length",
94 94
     {
95 95
         data_type     => "char",
96  
-        default_value => undef,
97  
-        is_nullable   => 1,
  96
+        default_value => "undef",
  97
+        is_nullable   => "1",
98 98
         size          => 10
99 99
     },
100 100
     "perl_length",
101 101
     {
102 102
         data_type     => "char",
103  
-        default_value => undef,
104  
-        is_nullable   => 1,
  103
+        default_value => "undef",
  104
+        is_nullable   => "1",
105 105
         size          => 10
106 106
     },
107 107
     "percent_programming",
108 108
     {
109 109
         data_type     => "char",
110  
-        default_value => undef,
111  
-        is_nullable   => 1,
  110
+        default_value => "undef",
  111
+        is_nullable   => "1",
112 112
         size          => 10
113 113
     },
114 114
     "percent_management",
115 115
     {
116 116
         data_type     => "char",
117  
-        default_value => undef,
118  
-        is_nullable   => 1,
  117
+        default_value => "undef",
  118
+        is_nullable   => "1",
119 119
         size          => 10
120 120
     },
121 121
     "percent_perl",
122 122
     {
123 123
         data_type     => "char",
124  
-        default_value => undef,
125  
-        is_nullable   => 1,
  124
+        default_value => "undef",
  125
+        is_nullable   => "1",
126 126
         size          => 10
127 127
     },
128 128
     "spare_time",
129 129
     {
130 130
         data_type     => "char",
131  
-        default_value => undef,
132  
-        is_nullable   => 1,
  131
+        default_value => "undef",
  132
+        is_nullable   => "1",
133 133
         size          => 10
134 134
     },
135 135
     "perl_versions",
136 136
     {
137 137
         data_type     => "char",
138  
-        default_value => undef,
139  
-        is_nullable   => 1,
  138
+        default_value => "undef",
  139
+        is_nullable   => "1",
140 140
         size          => 10
141 141
     },
142 142
 
143 143
     "os_dev",
144 144
     {
145 145
         data_type     => "char",
146  
-        default_value => undef,
147  
-        is_nullable   => 1,
  146
+        default_value => "undef",
  147
+        is_nullable   => "1",
148 148
         size          => 10
149 149
     },
150 150
     "os_deployment",
151 151
     {
152 152
         data_type     => "char",
153  
-        default_value => undef,
154  
-        is_nullable   => 1,
  153
+        default_value => "undef",
  154
+        is_nullable   => "1",
155 155
         size          => 10
156 156
     },
157 157
 
158 158
     "lang",
159 159
     {
160 160
         data_type     => "char",
161  
-        default_value => undef,
162  
-        is_nullable   => 1,
  161
+        default_value => "undef",
  162
+        is_nullable   => "1",
163 163
         size          => 100
164 164
     },
165 165
     "lang1",
166 166
     {
167 167
         data_type     => "char",
168  
-        default_value => undef,
169  
-        is_nullable   => 1,
  168
+        default_value => "undef",
  169
+        is_nullable   => "1",
170 170
         size          => 100
171 171
     },
172 172
     "lang2",
173 173
     {
174 174
         data_type     => "char",
175  
-        default_value => undef,
176  
-        is_nullable   => 1,
  175
+        default_value => "undef",
  176
+        is_nullable   => "1",
177 177
         size          => 100
178 178
     },
179 179
     "lang3",
180 180
     {
181 181
         data_type     => "char",
182  
-        default_value => undef,
183  
-        is_nullable   => 1,
  182
+        default_value => "undef",
  183
+        is_nullable   => "1",
184 184
         size          => 100
185 185
     },
186 186
     "lang4",
187 187
     {
188 188
         data_type     => "char",
189  
-        default_value => undef,
190  
-        is_nullable   => 1,
  189
+        default_value => "undef",
  190
+        is_nullable   => "1",
191 191
         size          => 100
192 192
     },
193 193
 
194 194
     "perl_freq",
195 195
     {
196 196
         data_type     => "char",
197  
-        default_value => undef,
198  
-        is_nullable   => 1,
  197
+        default_value => "undef",
  198
+        is_nullable   => "1",
199 199
         size          => 100
200 200
     },
201 201
 
202  
-    pm_list,
  202
+    "pm_list",
203 203
     {
204 204
         data_type     => "char",
205  
-        default_value => undef,
206  
-        is_nullable   => 1,
  205
+        default_value => "undef",
  206
+        is_nullable   => "1",
207 207
         size          => 100
208 208
     },
209  
-    tech_list,
  209
+    "tech_list",
210 210
     {
211 211
         data_type     => "text",
212  
-        default_value => undef,
213  
-        is_nullable   => 1,
  212
+        default_value => "undef",
  213
+        is_nullable   => "1",
214 214
     },
215  
-    tech_list_non_perl,
  215
+    "tech_list_non_perl",
216 216
     {
217 217
         data_type     => "text",
218  
-        default_value => undef,
219  
-        is_nullable   => 1,
  218
+        default_value => "undef",
  219
+        is_nullable   => "1",
220 220
     },
221  
-    local_pm,
  221
+    "local_pm",
222 222
     {
223 223
         data_type     => "char",
224  
-        default_value => undef,
225  
-        is_nullable   => 1,
  224
+        default_value => "undef",
  225
+        is_nullable   => "1",
226 226
         size          => "200"
227 227
     },
228  
-    pm_meetings,
  228
+    "pm_meetings",
229 229
     {
230 230
         data_type     => "char",
231  
-        default_value => undef,
232  
-        is_nullable   => 1,
  231
+        default_value => "undef",
  232
+        is_nullable   => "1",
233 233
         size          => "100"
234 234
     },
235  
-    conference,
  235
+    "conference",
236 236
     {
237 237
         data_type     => "char",
238  
-        default_value => undef,
239  
-        is_nullable   => 1,
  238
+        default_value => "undef",
  239
+        is_nullable   => "1",
240 240
         size          => "100"
241 241
     },
242  
-    cpan_modules,
  242
+    "cpan_modules",
243 243
     {
244 244
         data_type     => "char",
245  
-        default_value => undef,
246  
-        is_nullable   => 1,
  245
+        default_value => "undef",
  246
+        is_nullable   => "1",
247 247
         size          => "25"
248 248
     },
249  
-    handover_modules,
  249
+    "handover_modules",
250 250
     {
251 251
         data_type     => "char",
252  
-        default_value => undef,
253  
-        is_nullable   => 1,
  252
+        default_value => "undef",
  253
+        is_nullable   => "1",
254 254
         size          => 100
255 255
     },
256  
-    bug_report_interpreter,
  256
+    "bug_report_interpreter",
257 257
     {
258 258
         data_type     => "char",
259  
-        default_value => undef,
260  
-        is_nullable   => 1,
  259
+        default_value => "undef",
  260
+        is_nullable   => "1",
261 261
         size          => 100
262 262
     },
263  
-    fix_bug_interpreter,
  263
+    "fix_bug_interpreter",
264 264
     {
265 265
         data_type     => "char",
266  
-        default_value => undef,
267  
-        is_nullable   => 1,
  266
+        default_value => "undef",
  267
+        is_nullable   => "1",
268 268
         size          => 100
269 269
     },
270  
-    feature_interpreter,
  270
+    "feature_interpreter",
271 271
     {
272 272
         data_type     => "char",
273  
-        default_value => undef,
274  
-        is_nullable   => 1,
  273
+        default_value => "undef",
  274
+        is_nullable   => "1",
275 275
         size          => 100
276 276
     },
277  
-    cpan_bug,
  277
+    "cpan_bug",
278 278
     {
279 279
         data_type     => "char",
280  
-        default_value => undef,
281  
-        is_nullable   => 1,
  280
+        default_value => "undef",
  281
+        is_nullable   => "1",
282 282
         size          => 100
283 283
     },
284  
-    cpan_fix_bug,
  284
+    "cpan_fix_bug",
285 285
     {
286 286
         data_type     => "char",
287  
-        default_value => undef,
288  
-        is_nullable   => 1,
  287
+        default_value => "undef",
  288
+        is_nullable   => "1",
289 289
         size          => 100
290 290
     },
291  
-    cpan_feature,
  291
+    "cpan_feature",
292 292
     {
293 293
         data_type     => "char",
294  
-        default_value => undef,
295  
-        is_nullable   => 1,
  294
+        default_value => "undef",
  295
+        is_nullable   => "1",
296 296
         size          => 100
297 297
     },
298 298
 
299  
-    legacy,
  299
+    "legacy",
300 300
     {
301 301
         data_type     => "char",
302  
-        default_value => undef,
303  
-        is_nullable   => 1,
304  
-        size          => 100,
  302
+        default_value => "undef",
  303
+        is_nullable   => "1",
  304
+        size          => "100",
305 305
     },
306  
-    eliminate,
  306
+    "eliminate",
307 307
     {
308 308
         data_type     => "char",
309  
-        default_value => undef,
310  
-        is_nullable   => 1,
  309
+        default_value => "undef",
  310
+        is_nullable   => "1",
311 311
         size          => 100
312 312
     },
313  
-    startup,
  313
+    "startup",
314 314
     {
315 315
         data_type     => "char",
316  
-        default_value => undef,
317  
-        is_nullable   => 1,
  316
+        default_value => "undef",
  317
+        is_nullable   => "1",
318 318
         size          => 100
319 319
     },
320  
-    unmaintainable,
  320
+    "unmaintainable",
321 321
     {
322 322
         data_type     => "char",
323  
-        default_value => undef,
324  
-        is_nullable   => 1,
  323
+        default_value => "undef",
  324
+        is_nullable   => "1",
325 325
         size          => 100
326 326
     },
327  
-    scale,
  327
+    "scale",
328 328
     {
329 329
         data_type     => "char",
330  
-        default_value => undef,
331  
-        is_nullable   => 1,
  330
+        default_value => "undef",
  331
+        is_nullable   => "1",
332 332
         size          => 100
333 333
     },
334  
-    management_encourages,
  334
+    "management_encourages",
335 335
     {
336 336
         data_type     => "char",
337  
-        default_value => undef,
338  
-        is_nullable   => 1,
  337
+        default_value => "undef",
  338
+        is_nullable   => "1",
339 339
         size          => 100
340 340
     },
341 341
 
342  
-    management_outdated,
  342
+    "management_outdated",
343 343
     {
344 344
         data_type     => "char",
345  
-        default_value => undef,
346  
-        is_nullable   => 1,
  345
+        default_value => "undef",
  346
+        is_nullable   => "1",
347 347
         size          => 100
348 348
 
349 349
     },
350  
-    management_unmaintainable,
  350
+    "management_unmaintainable",
351 351
     {
352 352
         data_type     => "char",
353  
-        default_value => undef,
354  
-        is_nullable   => 1,
  353
+        default_value => "undef",
  354
+        is_nullable   => "1",
355 355
         size          => 100
356 356
     },
357  
-    management_scale,
  357
+    "management_scale",
358 358
     {
359 359
         data_type     => "char",
360  
-        default_value => undef,
361  
-        is_nullable   => 1,
  360
+        default_value => "undef",
  361
+        is_nullable   => "1",
362 362
         size          => 100
363 363
     },
364  
-    first,
  364
+    "first",
365 365
     {
366 366
         data_type     => "char",
367  
-        default_value => undef,
368  
-        is_nullable   => 1,
  367
+        default_value => "undef",
  368
+        is_nullable   => "1",
369 369
         size          => 100
370 370
     },
371  
-    beginner,
  371
+    "beginner",
372 372
     {
373 373
         data_type     => "char",
374  
-        default_value => undef,
375  
-        is_nullable   => 1,
  374
+        default_value => "undef",
  375
+        is_nullable   => "1",
376 376
         size          => 100
377 377
     },
378  
-    early_career,
  378
+    "early_career",
379 379
     {
380 380
         data_type     => "char",
381  
-        default_value => undef,
382  
-        is_nullable   => 1,
  381
+        default_value => "undef",
  382
+        is_nullable   => "1",
383 383
         size          => 100
384 384
     },
385  
-    experienced,
  385
+    "experienced",
386 386
     {
387 387
         data_type     => "char",
388  
-        default_value => undef,
389  
-        is_nullable   => 1,
  388
+        default_value => "undef",
  389
+        is_nullable   => "1",
390 390
         size          => 100
391 391
     },
392  
-    sysadmins,
  392
+    "sysadmins",
393 393
     {
394 394
         data_type     => "char",
395  
-        default_value => undef,
396  
-        is_nullable   => 1,
  395
+        default_value => "undef",
  396
+        is_nullable   => "1",
397 397
         size          => 100
398 398
     },
399  
-    netengs,
  399
+    "netengs",
400 400
     {
401 401
         data_type     => "char",
402  
-        default_value => undef,
403  
-        is_nullable   => 1,
  402
+        default_value => "undef",
  403
+        is_nullable   => "1",
404 404
         size          => 100
405 405
     },
406  
-    embedded,
  406
+    "embedded",
407 407
     {
408 408
         data_type     => "char",
409  
-        default_value => undef,
410  
-        is_nullable   => 1,
  409
+        default_value => "undef",
  410
+        is_nullable   => "1",
411 411
         size          => 100
412 412
     },
413  
-    apps,
  413
+    "apps",
414 414
     {
415 415
         data_type     => "char",
416  
-        default_value => undef,
417  
-        is_nullable   => 1,
  416
+        default_value => "undef",
  417
+        is_nullable   => "1",
418 418
         size          => 100
419 419
     },
420 420
 
421  
-    best,
  421
+    "best",
422 422
     {
423 423
         data_type     => "text",
424  
-        default_value => undef,
425  
-        is_nullable   => 1,
  424
+        default_value => "undef",
  425
+        is_nullable   => "1",
426 426
     },
427  
-    frustrates,
  427
+    "frustrates",
428 428
     {
429 429
         data_type     => "text",
430  
-        default_value => undef,
431  
-        is_nullable   => 1,
  430
+        default_value => "undef",
  431
+        is_nullable   => "1",
432 432
     },
433  
-    words,
  433
+    "words",
434 434
     {
435 435
         data_type     => "text",
436  
-        default_value => undef,
437  
-        is_nullable   => 1,
  436
+        default_value => "undef",
  437
+        is_nullable   => "1",
438 438
     },
439 439
 
440  
-    cert_me,
  440
+    "cert_me",
441 441
     {
442 442
         data_type     => "char",
443  
-        default_value => undef,
444  
-        is_nullable   => 1,
  443
+        default_value => "undef",
  444
+        is_nullable   => "1",
445 445
         size          => 100
446 446
     },
447  
-    cert_other,
  447
+    "cert_other",
448 448
     {
449 449
         data_type     => "char",
450  
-        default_value => undef,
451  
-        is_nullable   => 1,
  450
+        default_value => "undef",
  451
+        is_nullable   => "1",
452 452
         size          => 100
453 453
     },
454  
-    cert_comments,
  454
+    "cert_comments",
455 455
     {
456 456
         data_type     => "char",
457  
-        default_value => undef,
458  
-        is_nullable   => 1,
  457
+        default_value => "undef",
  458
+        is_nullable   => "1",
459 459
         size          => 100
460 460
     },
461 461
 
462  
-    cpan_important,
  462
+    "cpan_important",
463 463
     {
464 464
         data_type     => "char",
465  
-        default_value => undef,
466  
-        is_nullable   => 1,
  465
+        default_value => "undef",
  466
+        is_nullable   => "1",
467 467
         size          => 100
468 468
     },
469 469
 
470  
-    cpan1,
  470
+    "cpan1",
471 471
     {
472 472
         data_type     => "char",
473  
-        default_value => undef,
474  
-        is_nullable   => 1,
  473
+        default_value => "undef",
  474
+        is_nullable   => "1",
475 475
         size          => 100
476 476
     },
477  
-    cpan2,
  477
+    "cpan2",
478 478
     {
479 479
         data_type     => "char",
480  
-        default_value => undef,
481  
-        is_nullable   => 1,
  480
+        default_value => "undef",
  481
+        is_nullable   => "1",
482 482
         size          => 100
483 483
     },
484  
-    cpan3,
  484
+    "cpan3",
485 485
     {
486 486
         data_type     => "char",
487  
-        default_value => undef,
488  
-        is_nullable   => 1,
  487
+        default_value => "undef",
  488
+        is_nullable   => "1",
489 489
         size          => 100
490 490
     },
491  
-    cpan4,
  491
+    "cpan4",
492 492
     {
493 493
         data_type     => "char",
494  
-        default_value => undef,
495  
-        is_nullable   => 1,
  494
+        default_value => "undef",
  495
+        is_nullable   => "1",
496 496
         size          => 100
497 497
     },
498  
-    run_tests,
  498
+    "run_tests",
499 499
     {
500 500
         data_type     => "char",
501  
-        default_value => undef,
502  
-        is_nullable   => 1,
  501
+        default_value => "undef",
  502
+        is_nullable   => "1",
503 503
         size          => 100
504 504
     },
505  
-    force,
  505
+    "force",
506 506
     {
507 507
         data_type     => "char",
508  
-        default_value => undef,
509  
-        is_nullable   => 1,
  508
+        default_value => "undef",
  509
+        is_nullable   => "1",
510 510
         size          => 100
511 511
     },
512  
-    understand,
  512
+    "understand",
513 513
     {
514 514
         data_type     => "char",
515  
-        default_value => undef,
516  
-        is_nullable   => 1,
  515
+        default_value => "undef",
  516
+        is_nullable   => "1",
517 517
         size          => 100
518 518
     },
519  
-    report,
  519
+    "report",
520 520
     {
521 521
         data_type     => "char",
522  
-        default_value => undef,
523  
-        is_nullable   => 1,
  522
+        default_value => "undef",
  523
+        is_nullable   => "1",
524 524
         size          => 100
525 525
     },
526  
-    x_platform,
  526
+    "x_platform",
527 527
     {
528 528
         data_type     => "char",
529  
-        default_value => undef,
530  
-        is_nullable   => 1,
  529
+        default_value => "undef",
  530
+        is_nullable   => "1",
531 531
         size          => 100
532 532
     },
533  
-    x_comments,
  533
+    "x_comments",
534 534
     {
535 535
         data_type     => "char",
536  
-        default_value => undef,
537  
-        is_nullable   => 1,
  536
+        default_value => "undef",
  537
+        is_nullable   => "1",
538 538
         size          => 100
539 539
     },
540 540
 
541  
-    email,
  541
+    "email",
542 542
     {
543 543
         data_type     => "varchar",
544  
-        default_value => undef,
545  
-        is_nullable   => 1,
  544
+        default_value => "undef",
  545
+        is_nullable   => "1",
546 546
         size          => 255
547 547
     },
548 548
 
8  Survey-Perl/lib/Survey/Perl/Auth/Schema.pm
@@ -5,12 +5,6 @@ use warnings;
5 5
 
6 6
 use base 'DBIx::Class::Schema';
7 7
 
8  
-__PACKAGE__->load_classes;
  8
+__PACKAGE__->load_namespaces;
9 9
 
10  
-
11  
-# Created by DBIx::Class::Schema::Loader v0.04006 @ 2009-09-11 17:06:47
12  
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nbZ7hOUzma87ik9kPCetYw
13  
-
14  
-
15  
-# You can replace this text with custom content, and it will be preserved on regeneration
16 10
 1;
6  Survey-Perl/survey_perl.conf
@@ -12,6 +12,12 @@ default_view Web
12 12
       connect_info user
13 13
       connect_info passwd
14 14
     </Model>
  15
+	<Model Answers>
  16
+      schema_class Survey::Perl::Answers::Schema
  17
+      connect_info dbi:SQLite:__path_to(db/answers.db)__
  18
+      connect_info ""
  19
+      connect_info ""
  20
+    </Model>
15 21
     <View JSON>
16 22
       expose_stash autocomplete
17 23
     </View>

0 notes on commit bc77c84

Please sign in to comment.
Something went wrong with that request. Please try again.