Browse Source

rename h2 and postgreSQL table t_ds_fav to t_ds_fav_task (#13333)

3.1.3-release
Tq 2 years ago committed by GitHub
parent
commit
4d29460959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql
  2. 6
      dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql
  3. 1
      dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql

6
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql

@ -1997,10 +1997,10 @@ INSERT INTO `t_ds_cluster`
VALUES (100, 0, 'ds_null_k8s', '{"k8s":"ds_null_k8s"}', 'test', 1, '2021-03-03 11:31:24.0', '2021-03-03 11:31:24.0');
--
-- Table structure for t_ds_fav
-- Table structure for t_ds_fav_task
--
DROP TABLE IF EXISTS t_ds_fav CASCADE;
CREATE TABLE t_ds_fav
DROP TABLE IF EXISTS t_ds_fav_task CASCADE;
CREATE TABLE t_ds_fav_task
(
id bigint(20) NOT NULL AUTO_INCREMENT,
task_name varchar(64) NOT NULL,

6
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql

@ -1953,11 +1953,11 @@ CREATE TABLE t_ds_cluster(
);
--
-- Table structure for t_ds_fav
-- Table structure for t_ds_fav_task
--
DROP TABLE IF EXISTS t_ds_fav;
CREATE TABLE t_ds_fav
DROP TABLE IF EXISTS t_ds_fav_task;
CREATE TABLE t_ds_fav_task
(
id serial NOT NULL,
task_name varchar(64) NOT NULL,

1
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql

@ -14,3 +14,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
ALTER TABLE t_ds_fav RENAME TO t_ds_fav_task;
Loading…
Cancel
Save