Refactored postgresql Db scripts

revert-dabc3590
Dileesha Rajapakse 9 years ago
parent e600627f78
commit 53b0737632

@ -1,8 +1,7 @@
-- -----------------------------------------------------
-- Table AD_DEVICE
-- -----------------------------------------------------
DROP TABLE IF EXISTS AD_DEVICE;
CREATE TABLE AD_DEVICE (
CREATE TABLE IF NOT EXISTS AD_DEVICE (
DEVICE_ID VARCHAR(45) NOT NULL ,
DEVICE_INFO VARCHAR(500) NULL DEFAULT NULL,
GCM_TOKEN VARCHAR(45) NULL DEFAULT NULL,
@ -22,8 +21,7 @@ CREATE TABLE AD_DEVICE (
-- -----------------------------------------------------
-- Table AD_FEATURE
-- -----------------------------------------------------
DROP TABLE IF EXISTS AD_FEATURE;
CREATE TABLE AD_FEATURE (
CREATE TABLE IF NOT EXISTS AD_FEATURE (
ID BIGSERIAL NOT NULL PRIMARY KEY,
CODE VARCHAR(45) NOT NULL,
NAME VARCHAR(100) NULL,

@ -1,8 +1,7 @@
-- -----------------------------------------------------
-- Table IOS_FEATURE
-- -----------------------------------------------------
DROP TABLE IF EXISTS IOS_FEATURE;
CREATE TABLE IOS_FEATURE (
CREATE TABLE IF NOT EXISTS IOS_FEATURE (
ID SERIAL NOT NULL,
CODE VARCHAR(45) NOT NULL,
NAME VARCHAR(100) NULL,
@ -13,8 +12,7 @@ CREATE TABLE IOS_FEATURE (
-- -----------------------------------------------------
-- Table IOS_DEVICE
-- -----------------------------------------------------
DROP TABLE IF EXISTS IOS_DEVICE;
CREATE TABLE IF NOT EXISTS IOS_DEVICE (
CREATE TABLE IF NOT EXISTS IOS_DEVICE (
DEVICE_ID VARCHAR(45) NOT NULL,
APNS_PUSH_TOKEN VARCHAR(100) NULL DEFAULT NULL,
MAGIC_TOKEN VARCHAR(100) NULL DEFAULT NULL,

@ -1,8 +1,7 @@
-- -----------------------------------------------------
-- Table WIN_DEVICE
-- -----------------------------------------------------
DROP TABLE IF EXISTS WIN_DEVICE;
CREATE TABLE WIN_DEVICE (
CREATE TABLE IF NOT EXISTS WIN_DEVICE (
DEVICE_ID VARCHAR(45) NOT NULL,
PUSH_TOKEN VARCHAR(45) NULL DEFAULT NULL,
IMEI VARCHAR(45) NULL DEFAULT NULL,
@ -22,8 +21,7 @@ CREATE TABLE WIN_DEVICE (
-- -----------------------------------------------------
-- Table WIN_FEATURE
-- -----------------------------------------------------
DROP TABLE IF EXISTS WIN_FEATURE;
CREATE TABLE WIN_FEATURE (
CREATE TABLE IF NOT EXISTS WIN_FEATURE (
ID SERIAL NOT NULL,
DEVICE_TYPE VARCHAR(45) NOT NULL,
CODE VARCHAR(45) NULL,

Loading…
Cancel
Save