Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wiaflos
wiaflos
Commits
ae9d4beb
Commit
ae9d4beb
authored
Mar 18, 2014
by
Nigel Kukard
Browse files
Updated method to generate database schema
parent
9a39a567
Changes
4
Hide whitespace changes
Inline
Side-by-side
INSTALL
View file @
ae9d4beb
Linux Installation Notes
------------------------
1. Use database/schema.sql to initialize your database
1. Initialize your database schema using awitpt/bin/convert-tsql
awitpt/bin/convert-tsql sqlite database/schema.tsql > database/schema.sqlite
2. Create configuration file ~/.wiaflos
***
...
...
database/mysql.sh
deleted
100644 → 0
View file @
9a39a567
# Mysql conversion script
# Copyright (C) 2009-2014, AllWorldIT
# Copyright (C) 2008, LinuxRulz
# Copyright (C) 2005-2007 Nigel Kukard <nkukard@lbsd.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
(
echo
'DROP DATABASE wiaflos;'
echo
'CREATE DATABASE wiaflos;'
echo
'\r wiaflos'
sed
\
-e
's/@PRELOAD@/SET FOREIGN_KEY_CHECKS=0;/'
\
-e
's/@POSTLOAD@/SET FOREIGN_KEY_CHECKS=1;/'
\
-e
's/@CREATE_TABLE_SUFFIX@/TYPE=InnoDB/'
\
-e
's/@SERIAL_TYPE@/SERIAL/'
\
-e
's/@SERIAL_REF_TYPE@/BIGINT UNSIGNED/'
)
< schema.tsql
database/pgsql.sh
deleted
100644 → 0
View file @
9a39a567
# Pgsql conversion script
# Copyright (C) 2009, AllWorldIT
# Copyright (C) 2008, LinuxRulz
# Copyright (C) 2005-2007 Nigel Kukard <nkukard@lbsd.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
(
echo
'\c postgres'
echo
"DROP DATABASE wiaflos;"
echo
"CREATE DATABASE wiaflos;"
echo
'\c wiaflos'
sed
\
-e
's/@PRELOAD@/SET CONSTRAINTS ALL DEFERRED;/'
\
-e
's/@POSTLOAD@//'
\
-e
's/@CREATE_TABLE_SUFFIX@//'
\
-e
's/@SERIAL_TYPE@/SERIAL/'
\
-e
's/@SERIAL_REF_TYPE@/INT8/'
)
< schema.tsql
database/sqlite3.sh
deleted
100644 → 0
View file @
9a39a567
# SQLite conversion script
# Copyright (C) 2009-2014, AllWorldIT
# Copyright (C) 2008, LinuxRulz
# Copyright (C) 2005-2007 Nigel Kukard <nkukard@lbsd.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
(
sed
\
-e
's/@PRELOAD@//'
\
-e
's/@POSTLOAD@//'
\
-e
's/@CREATE_TABLE_SUFFIX@//'
\
-e
's/@SERIAL_TYPE@/INTEGER PRIMARY KEY AUTOINCREMENT/'
\
-e
's/@SERIAL_REF_TYPE@/INT8/'
)
< schema.tsql
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment