mirror of
https://github.com/kanaka/mal.git
synced 2024-11-13 11:23:59 +03:00
494792abe4
- move each file to a schema namespace. Don't recreate DB, just the schemas. This is much faster and avoids the error about user still using the DB when recreating the DB. - combine RUN and MAIN_LOOP into MAIN routine. - add open column to streams table - close stream 1 in MAIN
14 lines
329 B
SQL
Executable File
14 lines
329 B
SQL
Executable File
-- ---------------------------------------------------------
|
|
-- init.sql
|
|
|
|
-- Drop pre-existing schemas
|
|
DROP SCHEMA IF EXISTS io, types, reader, printer, envs, core, mal CASCADE;
|
|
|
|
-- Drop and recreate extensions
|
|
DROP EXTENSION IF EXISTS hstore;
|
|
CREATE EXTENSION hstore;
|
|
|
|
DROP EXTENSION IF EXISTS dblink;
|
|
CREATE EXTENSION dblink;
|
|
|