make metadata storage pluggable

I already made those changes, it significantly reduces the amount of
duplicate code.

On Wed, Oct 29, 2014 at 12:44 PM, jisookim0513 <notifications@github.com>
wrote:

> In
> postgres-storage/src/main/java/io/druid/storage/postgres/PostgreSQLConnector.java:
>
> > +      );
> > +    }
> > +    catch (Exception e) {
> > +      log.warn(e, "Exception creating table");
> > +    }
> > +  }
> > +
> > +  @Override
> > +  public void createSegmentTable(final IDBI dbi, final String tableName)
> > +  {
> > +    createTable(
> > +        dbi,
> > +        tableName,
> > +        String.format(
> > +            "CREATE TABLE %1$s (id VARCHAR(255) NOT NULL, dataSource VARCHAR(255) NOT NULL, created_date TEXT NOT NULL, "
> > +            + "start TEXT NOT NULL, \"end\" TEXT NOT NULL, partitioned SMALLINT NOT NULL, version TEXT NOT NULL, "
>
> I didn't modify the type of each field for MySQL and Postgres (they stay
> the same as before I implemented pluggable metadata storage). Should I make
> those modifications?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/metamx/druid/pull/758/files#r19566435>.
>