Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
*Updated table definition files for future development
Browse files Browse the repository at this point in the history
  • Loading branch information
Zolli committed Feb 24, 2013
1 parent 9b36ec9 commit 5f9b9b3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/sql/h2/createTable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ CREATE TABLE IF NOT EXISTS players (
playerName VARCHAR(32),
dragonDefeated TINYINT,
specialTags TEXT
);

CREATE TABLE IF NOT EXISTS settings (
id INT auto_increment,
key VARCHAR(64),
value VARCHAR(64)
);
7 changes: 7 additions & 0 deletions resources/sql/mysql/createTable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ CREATE TABLE IF NOT EXISTS `players` (
`dragonDefeated` tinyint(1) NOT NULL,
`specialTags` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `settings` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`key` varchar(64) NOT NULL,
`value` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
6 changes: 6 additions & 0 deletions resources/sql/sqlite/createTable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ CREATE TABLE IF NOT EXISTS players (
playerName VARCHAR(32),
dragonDefeated TINYINT,
specialTags TEXT
);

CREATE TABLE IF NOT EXISTS settings (
id INTEGER PRIMARY KEY,
key VARCHAR(64),
value VARCHAR(64)
);

0 comments on commit 5f9b9b3

Please sign in to comment.