Sha256: 4ef8dfe2f547aa95e534f7b5a7539bc8f7f65274da4a781d82884441e37e4494
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
// Mysql DROP TABLE IF EXISTS `entities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `entities` ( `id` varchar(128) NOT NULL, `value` varbinary(2048) DEFAULT NULL, `datatype` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; // Postgresql CREATE TABLE entities ( id character varying(128) NOT NULL, value bytea, datatype smallint, CONSTRAINT entities_pkey PRIMARY KEY (id) ) WITH ( OIDS=FALSE ); ALTER TABLE entities OWNER TO gamemachine; CREATE OR REPLACE RULE entities_merge AS ON INSERT TO entities WHERE (EXISTS ( SELECT 1 FROM entities entities_1 WHERE entities_1.id::text = new.id::text)) DO INSTEAD UPDATE entities SET value = new.value, datatype = new.datatype WHERE entities.id::text = new.id::text;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
game_machine-1.0.4 | config/game_machine.sql |
game_machine-1.0.2 | config/game_machine.sql |