Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7519

debian / ubuntu packaging creation of plugin table (if not exists)

    XMLWordPrintable

Details

    Description

      Debian has CREATE TABLE IF NOT EXISTS plugin and Ubuntu only has CREATE TABLE plugin.

      Thinking Ubuntu should have IF NOT EXISTS too. It might fail otherwise.

      --- debian/dist/Ubuntu/mariadb-server-10.0.postinst     2014-05-25 15:03:40.306600000 +1000
      +++ debian/dist/Debian/mariadb-server-10.0.postinst     2014-05-25 15:03:40.306600000 +1000
      @@ -213,7 +212,7 @@
           # admin might already have chosen to remove one or more plugins. Newlines are necessary.
           install_plugins=`/bin/echo -e \
               "USE mysql;\n" \
      -        "CREATE TABLE plugin (name char(64) COLLATE utf8_bin NOT NULL DEFAULT '', " \
      +        "CREATE TABLE IF NOT EXISTS plugin (name char(64) COLLATE utf8_bin NOT NULL DEFAULT '', " \
               "  dl char(128) COLLATE utf8_bin NOT NULL DEFAULT '', " \
               "  PRIMARY KEY (name)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='MySQL plugins';" `
       

      Attachments

        Activity

          People

            elenst Elena Stepanova
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.