#!/usr/bin/perl
use strict;
-use Test::More tests => 73;
+use Test::More tests => 76;
use SQL::Translator;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Parser::Oracle qw(parse);
FOREIGN KEY ( qtl_trait_category_id ) REFERENCES qtl_trait_category
);
+ /* qtl table comment */
CREATE TABLE qtl
(
+ /* qtl_id comment */
qtl_id NUMBER(11) NOT NULL
CONSTRAINT pk_qtl PRIMARY KEY,
- qtl_accession_id VARCHAR2(20) NOT NULL,
+ qtl_accession_id VARCHAR2(20) NOT NULL /* accession comment */,
published_symbol VARCHAR2(100),
qtl_trait_id NUMBER(11) NOT NULL,
linkage_group VARCHAR2(32) NOT NULL,
my @t3_constraints = $t3->get_constraints;
is( scalar @t3_constraints, 3, '3 constraints on table' );
+is( $t3->comments, 'qtl table comment', 'Comment "qtl table comment" exists' );
+
+my $t3_f1 = shift @t3_fields;
+is( $t3_f1->comments, 'qtl_id comment', 'Comment "qtl_id comment" exists' );
+
+my $t3_f2 = shift @t3_fields;
+is( $t3_f2->comments, 'accession comment',
+ 'Comment "accession comment" exists' );
+
#
# qtl_trait_synonym
#