=cut
use strict;
+use warnings;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Utils 'parse_list_arg';
use base 'SQL::Translator::Schema::Object';
-use vars qw($VERSION $TABLE_COUNT $VIEW_COUNT);
+our ( $TABLE_COUNT, $VIEW_COUNT );
-$VERSION = '1.59';
+our $VERSION = '1.59';
my %VALID_INDEX_TYPE = (
UNIQUE => 1,
my $type = $index->type('unique');
-Get or set the index's options (e.g., "using" or "where" for PG). Returns
+Get or set the index's type.
Currently there are only four acceptable types: UNIQUE, NORMAL, FULL_TEXT,
and SPATIAL. The latter two might be MySQL-specific. While both lowercase