sql schema for git log
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 5 May 2010 21:25:04 +0000 (23:25 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 5 May 2010 21:25:04 +0000 (23:25 +0200)
git.sql [new file with mode: 0644]

diff --git a/git.sql b/git.sql
new file mode 100644 (file)
index 0000000..296d999
--- /dev/null
+++ b/git.sql
@@ -0,0 +1,18 @@
+\r mysql
+
+create database git ;
+
+grant all on git.* to dpavlin ;
+
+\r git
+
+create table log (
+       id integer primary key not null auto_increment,
+       hash varchar(40) not null,
+       parent varchar(40) not null,
+       timestamp datetime not null,
+       subject text not null
+);
+
+create unique index log_hash on log(hash);
+