Permalink
Browse files

DDLs

  • Loading branch information...
1 parent 3b4b077 commit 5092b6e9aca6d3f9d91e4f03f21229547417b78a @monken committed Aug 17, 2010
Showing with 56 additions and 0 deletions.
  1. +21 −0 example/sqlite.sql
  2. +35 −0 t/sqlite.sql
View
21 example/sqlite.sql
@@ -0,0 +1,21 @@
+--
+-- Created by SQL::Translator::Producer::SQLite
+-- Created on Tue Aug 17 12:54:24 2010
+--
+
+BEGIN TRANSACTION;
+
+--
+-- Table: user
+--
+CREATE TABLE user (
+ id character(10) NOT NULL,
+ created_on timestamp with time zone NOT NULL,
+ updated_on timestamp with time zone NOT NULL,
+ email NOT NULL,
+ first NOT NULL,
+ last NOT NULL,
+ PRIMARY KEY (id)
+);
+
+COMMIT;
View
35 t/sqlite.sql
@@ -0,0 +1,35 @@
+--
+-- Created by SQL::Translator::Producer::SQLite
+-- Created on Tue Aug 17 12:54:34 2010
+--
+
+BEGIN TRANSACTION;
+
+--
+-- Table: findordefault
+--
+CREATE TABLE findordefault (
+ id INTEGER PRIMARY KEY NOT NULL,
+ name character varying NOT NULL DEFAULT 'myname',
+ password character varying NOT NULL DEFAULT 'mypassw0rd'
+);
+
+--
+-- Table: skip_end
+--
+CREATE TABLE skip_end (
+ id INTEGER PRIMARY KEY NOT NULL,
+ name character varying NOT NULL,
+ password character varying NOT NULL
+);
+
+--
+-- Table: user
+--
+CREATE TABLE user (
+ id INTEGER PRIMARY KEY NOT NULL,
+ name character varying NOT NULL,
+ password character varying NOT NULL
+);
+
+COMMIT;

0 comments on commit 5092b6e

Please sign in to comment.