mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
chore: version 0002 sql schema compatible fix
This commit is contained in:
@@ -19,11 +19,12 @@
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
DROP TABLE
|
||||
old_subscriptions;
|
||||
IF EXISTS old_subscriptions;
|
||||
|
||||
ALTER TABLE
|
||||
subscriptions RENAME TO old_subscriptions;
|
||||
|
||||
-- add column params for subscription parameters
|
||||
CREATE TABLE
|
||||
IF NOT EXISTS subscriptions (
|
||||
app_name TEXT NOT NULL,
|
||||
@@ -37,7 +38,7 @@ CREATE TABLE
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
subscriptions (app_name, driver_name, group_name, params)
|
||||
subscriptions
|
||||
SELECT
|
||||
app_name,
|
||||
driver_name,
|
||||
|
||||
Reference in New Issue
Block a user