File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,23 @@ package Foswiki::DBI::Schema::MySQL;
1818use strict;
1919use warnings;
2020
21- use Foswiki::DBI::Schema::MariaDB;
22- our @ISA = (' Foswiki::DBI::Schema::MariaDB' );
21+ use Foswiki::DBI::Schema;
22+ our @ISA = (' Foswiki::DBI::Schema' );
23+
24+ sub getDefinition {
25+ return [[
26+ ' CREATE TABLE IF NOT EXISTS %prefix%meta (
27+ id SERIAL,
28+ type VARCHAR(255) NOT NULL,
29+ version INT NOT NULL
30+ ) DEFAULT CHARSET=utf8 DEFAULT COLLATE utf8_unicode_ci' ,
31+
32+ ' CREATE UNIQUE INDEX %prefix%idx_meta_type ON %prefix%meta (type)' ,
33+ ]];
34+ }
35+
36+ sub getType { return " db" ; }
37+
2338
24391;
2540
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use strict;
1919use warnings;
2020use Foswiki::DBI;
2121
22- our $VERSION = ' 1.00 ' ;
22+ our $VERSION = ' 1.01 ' ;
2323our $RELEASE = ' 27 Apr 2022' ;
2424our $SHORTDESCRIPTION = ' Database middle layer to manage connections and schemes' ;
2525our $NO_PREFS_IN_TOPIC = 1;
You can’t perform that action at this time.
0 commit comments