summaryrefslogtreecommitdiffstats
path: root/java/MyMyBatis/src/create.sql
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2017-03-23 17:10:39 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2017-03-23 17:10:39 +0100
commit724efad67fe61d2c02c41af24ebc352eb79ff2f8 (patch)
tree777e62835ca2f6901d8d2542e328fcea403f9680 /java/MyMyBatis/src/create.sql
parentbb1caf716a18b65fa42d7bed2369b66a0837d977 (diff)
downloadshare-724efad67fe61d2c02c41af24ebc352eb79ff2f8.zip
share-724efad67fe61d2c02c41af24ebc352eb79ff2f8.tar.gz
java : add MyMyBatis
Diffstat (limited to 'java/MyMyBatis/src/create.sql')
-rw-r--r--java/MyMyBatis/src/create.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/MyMyBatis/src/create.sql b/java/MyMyBatis/src/create.sql
new file mode 100644
index 0000000..337d230
--- /dev/null
+++ b/java/MyMyBatis/src/create.sql
@@ -0,0 +1,10 @@
+CREATE TABLE models
+(
+ id serial NOT NULL,
+ name text,
+ CONSTRAINT pk_id PRIMARY KEY (id)
+);
+
+INSERT INTO models(name) VALUES ('asynk');
+INSERT INTO models(name) VALUES ('fake');
+SET AUTOCOMMIT FALSE;