Skip to content

Commit

Permalink
Do not set charset in sql statements, encoding and collation will be …
Browse files Browse the repository at this point in the history
…inherited from database.
  • Loading branch information
Edmondas Girkantas committed Mar 11, 2016
1 parent ae919a6 commit 64411b8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sql/poweradmin-mysql-db-structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CREATE TABLE users (
active TINYINT NOT NULL,
use_ldap TINYINT NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

START TRANSACTION;
INSERT INTO users ( id, username, `password`, fullname, email
Expand All @@ -27,7 +27,7 @@ CREATE TABLE perm_items (
name VARCHAR(64) NOT NULL,
descr TEXT NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

START TRANSACTION;
INSERT INTO perm_items ( id, name, descr ) VALUES ( 41, 'zone_master_add', 'User is allowed to add new master zones.' );
Expand Down Expand Up @@ -58,7 +58,7 @@ CREATE TABLE perm_templ (
name VARCHAR(128) NOT NULL,
descr TEXT NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

START TRANSACTION;
INSERT INTO perm_templ ( id, name, descr )
Expand All @@ -71,7 +71,7 @@ CREATE TABLE perm_templ_items (
templ_id INTEGER NOT NULL,
perm_id INTEGER NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

START TRANSACTION;
INSERT INTO perm_templ_items ( id, templ_id, perm_id )
Expand All @@ -86,15 +86,15 @@ CREATE TABLE zones (
zone_templ_id INTEGER NOT NULL,
PRIMARY KEY (id),
KEY owner (owner)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

CREATE TABLE zone_templ (
id INTEGER NOT NULL AUTO_INCREMENT,
name VARCHAR(128) NOT NULL,
descr TEXT NOT NULL,
owner INTEGER NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

CREATE TABLE zone_templ_records (
id INTEGER NOT NULL AUTO_INCREMENT,
Expand All @@ -105,15 +105,15 @@ CREATE TABLE zone_templ_records (
ttl INTEGER NOT NULL,
prio INTEGER NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

CREATE TABLE records_zone_templ (
domain_id INTEGER NOT NULL,
record_id INTEGER NOT NULL,
zone_templ_id INTEGER NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

CREATE TABLE migrations (
version VARCHAR(255) NOT NULL,
apply_time INTEGER NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB;

0 comments on commit 64411b8

Please sign in to comment.