Adding sql schema file
authorCarl N Baldwin <cnb@plane.(none)>
Sun, 16 Oct 2005 04:00:41 +0000 (22:00 -0600)
committerCarl N Baldwin <cnb@plane.(none)>
Sun, 16 Oct 2005 04:00:41 +0000 (22:00 -0600)
Makefile.am
schema.sql [new file with mode: 0644]

index a9d90e36c6623642f565fd746064605bf65a6a9f..30391e139c34bb320186d48265b9527f7f03e90f 100644 (file)
@@ -2,7 +2,9 @@ bin_PROGRAMS = lsbackups
 
 bin_SCRIPTS = find-cmd.sh
 
-EXTRA_DIST = $(bin_SCRIPTS)
+schema_files = schema.sql
+
+EXTRA_DIST = $(bin_SCRIPTS) $(schema_files)
 
 lsbackups_SOURCES = main.cc \
                     filedata.hpp \
diff --git a/schema.sql b/schema.sql
new file mode 100644 (file)
index 0000000..d1515d9
--- /dev/null
@@ -0,0 +1,9 @@
+CREATE TABLE file (
+  CHAR type,
+  VARCHAR permissions,
+  VARCHAR user,
+  VARCHAR group,
+  INTEGER size,
+  INTEGER modified_date,
+  VARCHAR name
+)