File: WithTimeStampChildWrongOrder.pm

package info (click to toggle)
libdbix-class-encodedcolumn-perl 0.00020-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 236 kB
  • sloc: perl: 616; sql: 48; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 979 bytes parent folder | download | duplicates (4)
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
package # hide from PAUSE
    DigestTest::Schema::WithTimeStampChildWrongOrder;

use strict;
use warnings;
use base qw/DigestTest::Schema::WithTimeStampParentWrongOrder/;

__PACKAGE__->table('test_timestamp_order');
__PACKAGE__->add_columns(
    id => {
        data_type => 'int',
        is_nullable => 0,
        is_auto_increment => 1
    },
    username => {
        data_type => 'text',
        is_nullable => 0
    },
    password => {
        data_type           => "text",
        encode_args         => { algorithm => "SHA-1", format => "hex", salt_length => 10 },
        encode_check_method => "check_password",
        encode_class        => "Digest",
        encode_column       => 1,
        is_nullable         => 0,
    },
    created => {
        data_type => 'datetime',
        set_on_create => 1
    },
    updated => {
        data_type => 'datetime',
        set_on_create => 1,
        set_on_update => 1
    }
);

__PACKAGE__->set_primary_key('id');

1;